Is it possible to bind the PropertyGrid's PropertyDefinitions property to a PropertyDefinitionsCollection property in my viewmodel? I tried adding a line of the form:
in my XAML but get a XamlParseException saying that "A 'Binding' cannot be set on the 'PropertyDefinitions' property of type 'PropertyGrid'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject."
Is there any way around this? I can set the PropertyDefinitions in my code-behind but a binding would be preferable.
Hi,
Is it possible to bind the PropertyGrid's PropertyDefinitions property to a PropertyDefinitionsCollection property in my viewmodel? I tried adding a line of the form:
in my XAML but get a XamlParseException saying that "A 'Binding' cannot be set on the 'PropertyDefinitions' property of type 'PropertyGrid'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject."
Is there any way around this? I can set the PropertyDefinitions in my code-behind but a binding would be preferable.