Do I need to use any other attributes other than CssClassProperty to enabled design-time support?
Posted
by keith
on Stack Overflow
See other posts from Stack Overflow
or by keith
Published on 2010-04-01T15:19:32Z
Indexed on
2010/04/01
15:23 UTC
Read the original article
Hit count: 704
Hi,
I'm trying to provide the same design-time support that the CssClass provides on some custom properties of a server control. The documentation suggests that decorating the property with the CssClassProperty is all that's required.
[CssClassProperty]
public string SomeOtherCssClass{get;set;}
This has no effect, in vs2008 or vs2010. I've looked at the WebControl class using reflector and implemented all the attributes, and every combination thereof, to my property and still no class dropdown. Some blog posts suggest that the use of the Editor attribute but a) there's not mention of it in the documentation and b) none of editors which are remotely related to css classes have any effect either. Am I missing something to enable this feature?
Thanks in advance,
Keith.
© Stack Overflow or respective owner