title: Silverlight: Programmatically binding control properties
body: <p><em>The big picture:</em> 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. </p>
  
  <p>I generally use the MVVM pattern, and I want to bind the values of these dynamic controls back into my master page view model.</p>
  
  <p>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.</p>
  
  <p><em>The question:</em> How can I bind the values of dynamic controls to dependency properties programmatically?</p>
  
  <p>Thanks,
  Mark</p>