Hello,
I am unable to come up with the implementation of a nullable uint editor that would look and behave similarly to Int32EditBox.
Using Int32EditBox for data template causes Int32 to Nullable<UInt32> cast exception. This was an attempt to follow your sample for adding custom editors to property grid which uses existing edit box for a data template.
I tried to create my own PropertyEditor, along the lines of your Social Security Number sample custom editor, but I don't know how to integrate it into property grid.
I am using SelectedObject on property grid and I have ICustomTypeDescriptor for my object properties, principally to modify DisplayName, since I can't annotate the actual data type with attributes.
I am unable to come up with the implementation of a nullable uint editor that would look and behave similarly to Int32EditBox.
Using Int32EditBox for data template causes Int32 to Nullable<UInt32> cast exception. This was an attempt to follow your sample for adding custom editors to property grid which uses existing edit box for a data template.
I tried to create my own PropertyEditor, along the lines of your Social Security Number sample custom editor, but I don't know how to integrate it into property grid.
I am using SelectedObject on property grid and I have ICustomTypeDescriptor for my object properties, principally to modify DisplayName, since I can't annotate the actual data type with attributes.