My objects has a RequiredCondition property.
RequiredCondition has Id, Name and so one.
I also has an Collection that is the ItemsSource.
How do I set up the binding?
<telerik:RadComboBox ItemsSource="{Binding Path=DataContext.Conditions, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type views:PropertyEditorView}}}"
SelectedItem="{Binding RequiredCondition}"
SelectedValue="{Binding RequiredCondition}"
DisplayMemberPath="Name" EmptyText="Select an Expression" />
RequiredCondition has Id, Name and so one.
I also has an Collection that is the ItemsSource.
How do I set up the binding?
<telerik:RadComboBox ItemsSource="{Binding Path=DataContext.Conditions, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type views:PropertyEditorView}}}"
SelectedItem="{Binding RequiredCondition}"
SelectedValue="{Binding RequiredCondition}"
DisplayMemberPath="Name" EmptyText="Select an Expression" />