Hi,
Have you tried with the EditingTemplate defined in XAML ? When I try it, I can see a DropDownButton and clicking on it displays the TreeView. This solution doesn't need to create an Editor class :
Have you tried with the EditingTemplate defined in XAML ? When I try it, I can see a DropDownButton and clicking on it displays the TreeView. This solution doesn't need to create an Editor class :
<xctk:PropertyGrid x:Name="_propertyGrid">
<xctk:PropertyGrid.EditorDefinitions>
<xctk:EditorTemplateDefinition TargetProperties="NameOfProperty">
<xctk:EditorTemplateDefinition.EditingTemplate>
<DataTemplate>
<xctk:DropDownButton HorizontalAlignment="Left"
IsOpen="True"
Content="Blah">
<xctk:DropDownButton.DropDownContent>
<TreeView>
<TreeViewItem Header="Well">
<TreeViewItem Header="sample1" />
<TreeViewItem Header="sample2" />
<TreeViewItem Header="sample3" />
</TreeViewItem>
</TreeView>
</xctk:DropDownButton.DropDownContent>
</xctk:DropDownButton>
</DataTemplate>
</xctk:EditorTemplateDefinition.EditingTemplate>
</xctk:EditorTemplateDefinition>
</xctk:PropertyGrid.EditorDefinitions>
</xctk:PropertyGrid>