I have a Silverlight application. There is a UserControl in this application. This is a type of visual model in UserControl Datacentext will see the parents specified. Apart from this, two users of this UserControl are User Control Elements. Each of these user control elements has a visual model of one type that we would call the soft modules sold to ChildDirectNext.
When a user clicks a button in the YouTube content elements, then I want to affect it to another child UserControl I have to do this work. My problem is that my parents have such property that I want to bind into the user control control elements of each of my children. How do I bind myself to an asset in my parent vi model? I always thought that the propagated datacontest through a tree. But it seems that I'm wrong.
Is it possible that what I am doing? Thanks!
Create a hierarchy from the visual model. In every child's visual model there are references to parents.
Public square childview model 1: ... {public child-view model 1 (see Parent Model Parents Model) {_parentViewModel = parentViewModel; } Private Paint Vive Model / Parent Vime Model; Jan ParenViewModel ParentViewModel {Back {Return _parentViewModel; }}} In XAM:
& gt; TextBlock Text = {Binding Generator MODEL. Size Property} / & gt;
Comments
Post a Comment