Friday, October 16, 2009

Chapter 15-Lesson 2

  • An ASP.NET Theme may consist of .skin files, CSS files and images.
  • Themes are stored at the root of the Application in App_Themes folder.
  • Themes are applied at page level using Theme/StylesheetTheme attribute in the @Page directive, or at site level using pages Themes/StylesheetTheme attribute in web.config file.
  • Skin files specify settings for ASP.NET controls while CSS files specify settings for HTML elements.
  • A skin may be applied to either all the instances of a particular control (default skins) or applied to specific controls (Named skins)
  • In case of named skins, we set the control properties in the skin file and give it a SkinID. Later on whichever control in the .aspx page matches the SkinID attribute with the named skin would conform to that particualr skin.
  • Theming at various levels follows precedence as mentioned on Page 284.
  • We may disable themes for a particular page by setting EnableTheming to false in @Page directive.
  • Page.Theme property may be used to change the theme programatically during Page_PreInit event.

No comments:

Post a Comment