So, It's will be rather usefull to know how you bind it in xaml. I do it like this:
public class TestClassConfig
{
[Category("Cat1")]
public string ExcelName { get; set; }
[Category("Cat1")]
public string ResultFolder { get; set; }
[Category("CatWithExpandObj")]
[ExpandableObject]
public ExpandableTest OtherClass { get; set; }
}
public class ExpandableTest
{
public string Test1 { get; set; }
public string Test2 { get; set; }
}
And in xaml you mast bind Selected object
:
<xctk:PropertyGrid SelectedObject="{Binding TestClassConfig}"/>