I have some properties that need some time to execute (e.g. operation via TCP). Hence, it makes sense to bind these properties asynchronously. I cannot get this working using RadPropertyGrid.
The code looks right to me but it yields a System.Windows.Markup.XamlParseException:
Additional information: A 'PriorityBinding' cannot be set on the 'Binding' property of type 'PropertyDefinition'. A 'PriorityBinding' can only be set on a DependencyProperty of a DependencyObject.
Either I'm doing it wrong, or your property grid doesn't support this...?
Please help!
<Grid> <Grid.DataContext> <ObjectDataProvider ObjectType="{x:Type viewModels:MyViewModel}" IsAsynchronous="True" x:Name="myViewModel" /> </Grid.DataContext> <telerik:RadPropertyGrid x:Name="settings" Item="{Binding}" AutoGeneratePropertyDefinitions="False"> <telerik:RadPropertyGrid.PropertyDefinitions> <telerik:PropertyDefinition GroupName="TCP" DisplayName="Status"> <telerik:PropertyDefinition.Binding> <PriorityBinding FallbackValue="Reading..."> <Binding Path="Status" IsAsync="True" Mode="TwoWay" /> </PriorityBinding> </telerik:PropertyDefinition.Binding> </telerik:PropertyDefinition> </telerik:RadPropertyGrid.PropertyDefinitions> </telerik:RadPropertyGrid></Grid>The code looks right to me but it yields a System.Windows.Markup.XamlParseException:
Additional information: A 'PriorityBinding' cannot be set on the 'Binding' property of type 'PropertyDefinition'. A 'PriorityBinding' can only be set on a DependencyProperty of a DependencyObject.
Either I'm doing it wrong, or your property grid doesn't support this...?
Please help!