For first one, try :
<UserControl DataContext="{Binding RelativeSource={RelativeSource Self}}">
And for second question, I think using ElementName
or AncestorBinding
is best way to bind to UserControl
‘s properties.
For first one, try :
<UserControl DataContext="{Binding RelativeSource={RelativeSource Self}}">
And for second question, I think using ElementName
or AncestorBinding
is best way to bind to UserControl
‘s properties.