Hello,
i got a problem when using the RadPropertyGrid with a template. When i set the property AutoGeneratePropertyDefinitions to false and use the RadPropertyGrid inside a DataTemplate, the property seems to be ignored and i see all properties of the class object.
With kind regards,
Sebastian
i got a problem when using the RadPropertyGrid with a template. When i set the property AutoGeneratePropertyDefinitions to false and use the RadPropertyGrid inside a DataTemplate, the property seems to be ignored and i see all properties of the class object.
<
Window
... >
<
Window.Resources
>
<
local:TemplateSelector
x:Key
=
"templateSelector"
>
<
local:TemplateSelector.TemplateA
>
<
DataTemplate
>
<
rad:RadPropertyGrid
AutoGeneratePropertyDefinitions
=
"False"
Item
=
"{Binding }"
>
<
rad:RadPropertyGrid.PropertyDefinitions
>
<
rad:PropertyDefinition
DisplayName
=
"The only property displayed"
/>
</
rad:RadPropertyGrid.PropertyDefinitions
>
</
rad:RadPropertyGrid
>
</
DataTemplate
>
</
local:TemplateSelector.TemplateA
>
</
local:TemplateSelector
>
</
Window.Resources
>
<
Grid
>
<
ContentPresenter
ContentTemplateSelector
=
"{StaticResource templateSelector}"
Content
=
"{Binding }"
/>
</
Grid
>
</
Window
>
With kind regards,
Sebastian