xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.91k stars 879 forks source link

PropertyGrid: Binding to PropertyDefinitions #1210

Open cmkessell opened 7 years ago

cmkessell commented 7 years ago

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:

PropertyDefinitions="{Binding DisplayedPropertyList}"

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.

XceedBoucherS commented 7 years ago

Hi, This will be fixed in v3.6. Thanks.