Applying Styles, Themes, and Skins
What's New in 2.0
- Themes and Skins - The Themes and Skins feature of ASP.NET 2.0 allows you to factor style and layout information into a separate group of files, collectively called a Theme. A Theme can then be applied to any site to affect the look and feel of pages and controls within the site. Style changes to a site can then be easily maintained by making changes to the Theme, without having to edit the individual pages in your site. Themes can also be shared with other developers.
ASP.NET includes a number of features for customizing the look-and-feel or style of pages and controls in your application. Controls support a Style object model for setting stylistic properties such as fonts, borders, background and foreground colors, width, height, and more. Controls also fully support Cascading Style Sheets (CSS) for factoring style settings separately from control properties. You can define style information as control properties or CSS, or you can also define this information in a separate group of files called a Theme, to be applied to all or a portion of the pages in your application. Individual control styles are specified as a Skin within a Theme.
This section demonstrates a variety of uses for the Styles, Themes, and Skins features in ASP.NET 2.0.
浙公网安备 33010602011771号