I\'m trying to develop user control with some nested properties that allows to use databinding to set it. For example, I have something like this:
// Top lev
H.B. right, nested control does not inherit DataContext from mycontrol
.
Tyr out setting it explicitly:
<local:mycontrol x:name="myControl"
topleveltestproperty="{Binding Value}" >
<local:mycontrol.nestedobject>
<local:mynestedtype x:name="myNestedControl"
DataContext="{Binding ElementName=myControl,
Path=DataContext}"
nestedtestproperty="{Binding Value}" />
</local:mycontrol.nestedobject>
</local:mycontrol>