I am using the PG in this mode: PropertySetMode="Intersection" , AutoGeneratePropertyDefinitions="True"
I have a property on my object named RequiredCondition, I can se the property in the grid and also the list to choose from but the binding can not find my object because the DataItem is an PropertySetViewModel and not my object.
What do I do?
BindingExpression path error: 'RequiredCondition' property not found on 'object' ''PropertySetViewModel' (HashCode=42488127)'. BindingExpression:Path=RequiredCondition; DataItem='PropertySetViewModel' (HashCode=42488127); target element is 'RadComboBox' (Name=''); target property is 'SelectedItem' (type 'Object')
<DataTemplate x:Key="RequiredCondition">
<StackPanel Orientation="Horizontal">
<telerik:RadComboBox ItemsSource="{Binding Path=DataContext.Conditions, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type views:PropertyEditorView}}, Mode=OneWay}"
DisplayMemberPath="Name"
SelectedItem="{Binding RequiredCondition}"
EmptyText="Select an Expression" />
</StackPanel>
</DataTemplate>
I have a property on my object named RequiredCondition, I can se the property in the grid and also the list to choose from but the binding can not find my object because the DataItem is an PropertySetViewModel and not my object.
What do I do?
BindingExpression path error: 'RequiredCondition' property not found on 'object' ''PropertySetViewModel' (HashCode=42488127)'. BindingExpression:Path=RequiredCondition; DataItem='PropertySetViewModel' (HashCode=42488127); target element is 'RadComboBox' (Name=''); target property is 'SelectedItem' (type 'Object')
<DataTemplate x:Key="RequiredCondition">
<StackPanel Orientation="Horizontal">
<telerik:RadComboBox ItemsSource="{Binding Path=DataContext.Conditions, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type views:PropertyEditorView}}, Mode=OneWay}"
DisplayMemberPath="Name"
SelectedItem="{Binding RequiredCondition}"
EmptyText="Select an Expression" />
</StackPanel>
</DataTemplate>