Currently PropertyDefinitions have only one Property for DataBinding, which is very strange solution.
All these instances are DependencyObject, but at the same time they are not in the visual tree and we could not bind to a visibility or to readonly or to any other property without some starnge sorkarounds (why this was designed in this way?).
This makes these objects almost useless. becuae we cannot fully use them in an MVVM way (bindings, multiibindings, etc.)
Possible solutions:
Hello Denis,
(1) Most public properties of the PropertyDefinition class support data binding. Can you tell me which properties cannot be data bound and you would like to use in such scenario?
(2) Changing the PropertyDefinition object to a visual object will require a change in the public API of the control which will cause a breaking change that may affect some users. Instead, can you check the following suggestions and let me know if they would work for you if implemented in the control?
<telerik:PropertyDefinition Visibility="{Binding RelativeSource={RelativeSource Mode=Self}, Path=ParentPropertyGrid.DataContext.MyVisibilityProperty}"
Regards,
Martin Ivanov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.