|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Como: aplicar temas do ASP.NET
To apply a theme to a Web site
In the application's Web.config file, set the <pages> element to the name of the theme, either a global theme or a page theme, as shown in the following example: <configuration> <system.web> <pages theme="ThemeName" /> </system.web> </configuration>
ObservaçãoIf an application theme has the same name as a global application theme, the page theme takes precedence. To set a theme as a style sheet theme and be subordinated to local control settings), set the styleSheetTheme attribute instead: <configuration> <system.web> <pages styleSheetTheme="Themename" /> </system.web> </configuration>
To apply a theme to an individual page
Set the Theme or StyleSheetTheme attribute of the @ Page directive to the name of the theme to use, as shown in the following example: <%@ Page Theme="ThemeName" %> <%@ Page StyleSheetTheme="ThemeName" %>
The theme and its corresponding styles and skins now applies only to the page declaring it.
To apply a named skin to a control
Set the control's SkinID property, as shown in the following example: <asp:Calendar runat="server" ID="DatePicker" SkinID="SmallCalendar" />
If the page theme does not include a control skin that matches the SkinID property, the control uses the default skin for that control type.