-
September 17th, 2012, 10:33 AM
#1
Binding events to controls inside ContentControl
Hi,
I'm building an application based on the Effectus sample application by Ayende. See http://ayende.com/blog/4331/effectus...on-conventions . I like the way he uses conventions to bind methods to events.
My application is of course a bit more complicated. I have many more templates in /Design/Templates/ and some of them have controls, e.g. a button, to which I'd like to bind a method. Ayende's code currently doesn't go into the ContentControl part of the View so buttons inside the ContentControl aren't bound. How do I modify the code (e.g. the WireButtons() method in /Infrastructure/Presenters.cs ) to traverse the templates too and bind all found buttons and methods?
thank you,
Francois Botha
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|