public knowledge blog_load(sender Virendra)

                                                                                                                          Nothing shocks me, I am a Software Engineer.

Archive for August, 2009

Difference between Theme and StylesheetTheme attribute

Posted by Virendra Dugar on August 31, 2009

Learn new ASP.NET Core 1.0 Framework

The Page directive includes the attribute Theme and StylesheetTheme.You can use both to apply themes to a page. So, the question is: If you have a Theme attribute and a StylesheetTheme attribute for the Page directive, what is the difference between the two?

The StylesheetTheme attribute works the same as the Theme attribute. The difference is that the when attributes are set locally on the page within a particular control, the attributes are overridden by the theme if you use the Theme attribute. They are kept in place, however, if you apply the page’s theme using the StylesheetTheme attribute. Suppose you have a text box control like the following:

 

In this example, the ForeColor settings is overridden by the theme if you have applied theme using the Theme attribute in the Page directive. If, you applied the theme using the StylesheetTheme attribute in the Page directive, the ForeColor settings remain in place, even if they are explicitly defined in the theme.

Quick summary of what’s changed in ASP.NET Core 1.0

Enjoy…

Advertisements

Posted in ASP.NET | Tagged: | 1 Comment »

 
%d bloggers like this: