Tip
To load/save object graphs that are recursively editable in a PropertyGrid, you can use
the XmlSerializer class
from the KGy SOFT Core Libraries package.
public class ExpandablePropertiesConverter : TypeConverterPublic Class ExpandablePropertiesConverter
Inherits TypeConverterpublic ref class ExpandablePropertiesConverter : public TypeConvertertype ExpandablePropertiesConverter =
class
inherit TypeConverter
endThis can be used to decorate properties by TypeConverterAttribute. Alternatively, you can use the RecursivelyEditableTypeDescriptor to wrap any object to make its properties expandable in a PropertyGrid.
[TypeConverter(typeof(ExpandablePropertiesConverter))]
public MyComplexType MyComplexProperty { get; set; }| ExpandablePropertiesConverter | Initializes a new instance of the ExpandablePropertiesConverter class |
| GetProperties | Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes. (Overrides TypeConverterGetProperties(ITypeDescriptorContext, Object, Attribute)) |
| GetPropertiesSupported | Returns whether this object supports properties, using the specified context. (Overrides TypeConverterGetPropertiesSupported(ITypeDescriptorContext)) |