I need to bind a property of a UserControl
directly to another control, rather than any specific property on that control. What's the best way to achieve this? I've tried various combinations of the Binding
properties to no avail.
For some context, the UserControl
has a Next
property that specifies which control is next in the navigation hierarchy; it's similar to TabIndex
but for context sensitive navigation.
<c:MyControl x:Name="First" Next="{Binding ???}" />
<c:MyControl x:Name="Second" />
From reading the docs, I assumed I should've been able to do: {Binding Source=Second, BindsDirectlyToSource=True}
, but that didn't work.