I have defined a custom user control that I use in the MVVM Prism Silverlight (C #) application. I use my control this way:
<my2:DetailsTable Name="detailTable" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" DataContext="{Binding MyDataObject}" />
Then I would like to use this associated MyDataObject in the code that is inside my DetailTable custom control. I want to first bind the object to the datacontext, as shown, and then in the code behind which these properties of the objects are displayed for labels, text fields, etc. in this user control.
How can this be achieved?
thanks
source share