W
WALDO
Somebody asked this in August but didn't get a response.
I have a control with various properties, one of which returns type
Color.
I have a custom UITypeEditor which brings up the advanced ColorPicker
dialog. This UIType editor works fine if I change the property type to
String. When I switch it to Color, it displays a dropdown of the
KnownColor enumeration.
I did dome investigation and found that Color itself has a
UITypeEditor for the entire structure which negates my custom
UITypeEditor for my property. Since String doesn't have a UITypeEditor
(obviously, it is not necessary), Visual Studio looks at mine.
How can I convince Visual Studio to look at the UITypeEditor on the
property and not on the structure?
In the short term, I am converting the property back and forth from a
String, but this is not acceptible. Being that I cannot inherit from
Color (and I am using VB, so I don't have operators), creating a
subclass won't work.
Any ideas?
I have a control with various properties, one of which returns type
Color.
I have a custom UITypeEditor which brings up the advanced ColorPicker
dialog. This UIType editor works fine if I change the property type to
String. When I switch it to Color, it displays a dropdown of the
KnownColor enumeration.
I did dome investigation and found that Color itself has a
UITypeEditor for the entire structure which negates my custom
UITypeEditor for my property. Since String doesn't have a UITypeEditor
(obviously, it is not necessary), Visual Studio looks at mine.
How can I convince Visual Studio to look at the UITypeEditor on the
property and not on the structure?
In the short term, I am converting the property back and forth from a
String, but this is not acceptible. Being that I cannot inherit from
Color (and I am using VB, so I don't have operators), creating a
subclass won't work.
Any ideas?