ViewModelBinder and binding to multiple properties

Jul 22, 2010 at 10:02 PM

If I wanted to setup a convention for binding all my dropdowns (come from a key/value collection childobject) where do I plug that logic in? 

Would it be in an altered or overridden AddCustomBindingBehavior ?  I'm sure I'm not the first person to want to have my items source, displayPath, selectPath, etc all set automatically.  Maybe I missed it though in the ItemSources binding bit...

 

Coordinator
Jul 22, 2010 at 10:14 PM

Yes. You would use AddCustombindingBehavior. That's basically the place that I put anything that doesn't related to configuring the main Binding object. Have a look at the default implementation to get a few ideas. You can pretty much do anything you want.