S
Shawn B.
Greetings,
In creating a server control I added a property of type
System.Drawing.Color.
When the control is rendered, it generates a style that contains a style
called "backgroundColor" that will hold the value of
[Property].ToKnownColor.
It works well, except in some cases (if you set a system-defined color) such
as the "Info" color. When it renders, it simply renders "Info" but in the
style, that's not a known color. The MS controls render it as
"InfoBackground" but I can't see where I get that name from. It appears
that I have to know all these variations in the system-defined colors and
replace them with the proper name. Is there an easier built-in way?
Thanks,
Shawn
In creating a server control I added a property of type
System.Drawing.Color.
When the control is rendered, it generates a style that contains a style
called "backgroundColor" that will hold the value of
[Property].ToKnownColor.
It works well, except in some cases (if you set a system-defined color) such
as the "Info" color. When it renders, it simply renders "Info" but in the
style, that's not a known color. The MS controls render it as
"InfoBackground" but I can't see where I get that name from. It appears
that I have to know all these variations in the system-defined colors and
replace them with the proper name. Is there an easier built-in way?
Thanks,
Shawn