PropertyGrid and Custom properties
-
I have a custom property that has two string values and an int value. I need to display them in a PropertyGrid so that the property's UITypeEditor edits any of the three properties within that type. An example would be the "Font" type in a PropertyGrid. The name, size, unit, bold, etc. is part of the editor for that property type. Is PropertyDescriptor what I need? Thanks, Mark
-
I have a custom property that has two string values and an int value. I need to display them in a PropertyGrid so that the property's UITypeEditor edits any of the three properties within that type. An example would be the "Font" type in a PropertyGrid. The name, size, unit, bold, etc. is part of the editor for that property type. Is PropertyDescriptor what I need? Thanks, Mark
Try [BrowsableAttribute(true)] above your property description
-
Try [BrowsableAttribute(true)] above your property description
I think you misunderstood my question. I need to add an expandable property like the Font property has when displayed in a PropertyGrid. MyProperty Category + MyProperty my property's value string Size size value color color value name name value etc...., How is this done? Thanks, Mark
-
I think you misunderstood my question. I need to add an expandable property like the Font property has when displayed in a PropertyGrid. MyProperty Category + MyProperty my property's value string Size size value color color value name name value etc...., How is this done? Thanks, Mark
I think you looking for TypeConverterAttribute and ExpandableObjectConverter. The following link shows how to do it. <a href="http://msdn.microsoft.com/en-us/library/aa302326.aspx"> <a href="http://msdn.microsoft.com/en-us/library/ayybcxe5.aspx">