I have a Settings class that is bound to a WPF Extended Toolkit PropertyGrid's SelectedObject property. The Settings class is composed of two other classes: DisplaySettings and IOSettings. I would like these two classes to appear as separate categories in the PropertyGrid and would like their properties to be displayed as subitems under these categories. However, when the PropertyGrid is displayed, the properties of these sub-classes are not displayed. Only the class names are displayed with the full class name as their values.
How do I get the properties of these sub-classes to be displayed in the PropertyGrid?
You should add
ExpandableObject
attribute to properties. This attribute lives inXceed.Wpf.Toolkit.PropertyGrid.Attributes
namespace.