Hi,
I can't figure out how to correctly use the EditorTemplateSelector with the RadPropertyGrid. I just want to apply custom DataTemplates for different types of properties. The applying parts works as expected but I don't understand how to get the DataContext to work. DataContext inside the DataTemplates is always pointing to the top level object that is bound to the RadPropertGrid as Item. It would really make more sense to me to have the specific property (or PropertyDefinition) as DataContext. So, how do I bind to the specific property from the Editor-DataTemplate?
Thanks for your help!
Marcel
I can't figure out how to correctly use the EditorTemplateSelector with the RadPropertyGrid. I just want to apply custom DataTemplates for different types of properties. The applying parts works as expected but I don't understand how to get the DataContext to work. DataContext inside the DataTemplates is always pointing to the top level object that is bound to the RadPropertGrid as Item. It would really make more sense to me to have the specific property (or PropertyDefinition) as DataContext. So, how do I bind to the specific property from the Editor-DataTemplate?
Thanks for your help!
Marcel