By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,350 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,350 IT Pros & Developers. It's quick & easy.

Design-Time Theme Support

P: n/a
So try this. Create a new ASP.NET 2.0 website. Add a theme. Add a
skin to the theme. In your web.config, add the <pages theme="MyTheme"
styleSheetTheme="MyTheme" /tag under your system.web node.

Now, on a page, drag out any built in control, such as a label.
Style/Skin it. The control will take the style of the theme at both
runtime and in the designer. Cool!

Now, create a custom server control (inherits from WebControl).
Compile the default. Use it, style/skin it. (you'll need a @register
directive in your skin file). Works great at run-time, but the skin
doesn't show at design time.

So, my question is, what are the built in controls doing that I'm not
in custom controls? How do I get design time support for custom
controls and skins/themes?

Oct 11 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.