The big picture: I have a custom child control that generates various textboxes, datepickers, combo etc based on properties that I set. This control is embedded in various places within my SL application.
I generally use the MVVM pattern, and I want to bind the values of these dynamic controls back into my master page view model.
I always know that there will be 8 controls on the form so I can have dependency properties in place for the controls to bind to. Then the controls that reference this control, can use binding with the data that has been entered whilst maintaining an MVVM pattern.
The question: How can I bind the values of dynamic controls to dependency properties programmatically?
Thanks, Mark