September 17th, 2012, 10:33 AM
Binding events to controls inside ContentControl
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?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!