I am using the Extended WPF Toolkit and I'm trying to set up a PropertyGrid.
All properties I want to show are configured like that in XAML:
<xctk:PropertyDefinition TargetProperties="Name"
Description="{StaticResource PropertyGridDescription_Name}"
DisplayName="{StaticResource PropertyGridName_Name}"
Category="{StaticResource PropertyGridCategory_Overview}"
DisplayOrder="0"/>
One Property I would like to make expandable.
<xctk:PropertyDefinition TargetProperties="Source"
Description="{StaticResource PropertyGridDescription_Connection}"
DisplayName="{StaticResource PropertyGridName_Connection}"
Category="{StaticResource PropertyGridCategory_Overview}"
IsExpandable="True"
DisplayOrder="4"/>
First of all - I get these errors in XAML:
Cannot modify DisplayOrder once the definition has beed added to a collection.
Cannot modify IsExpandable once the definition has beed added to a collection.
Cannot modify DisplayName once the definition has beed added to a collection.
Cannot modify TargetProperties once the definition has beed added to a collection.
But the things work?!
Another Question: How to make a template for my expendable propertydefinition (I don't want to use AutoGenerateProperties)