D
Dr. Proctor
Hello
I have a PropertyGrid in my app that displays set of properties that
is created dynamically at run-time. Ie. I use a collection that
implements ICustomTypeDescriptor and it's instance is bound to
PropertyGrid's SelectedObject.
This collection stores PropertyDescriptor-derived objects, which are
the actual properties being edited. I would like to add custom
UITypeEditor for properties with certain custom datatypes. But I can't
use Editor attribute, because the properties are created dynamically.
Is there a switch case somewhere deep in the WinForms library that
binds certain datatypes, like System.Drawing.Color, to a specific
UITypeEditor? What I'd like to do is to override and extend this
functionality with my own types.
Thanks in advance.
I have a PropertyGrid in my app that displays set of properties that
is created dynamically at run-time. Ie. I use a collection that
implements ICustomTypeDescriptor and it's instance is bound to
PropertyGrid's SelectedObject.
This collection stores PropertyDescriptor-derived objects, which are
the actual properties being edited. I would like to add custom
UITypeEditor for properties with certain custom datatypes. But I can't
use Editor attribute, because the properties are created dynamically.
Is there a switch case somewhere deep in the WinForms library that
binds certain datatypes, like System.Drawing.Color, to a specific
UITypeEditor? What I'd like to do is to override and extend this
functionality with my own types.
Thanks in advance.