PageTheme Class
Represents the base class for a page theme, which is a collection of resources that are used to define a consistent look across pages and controls in a Web site. The page theme can be set through configuration or the page directive.
Assembly: System.Web (in System.Web.dll)
The PageTheme type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AppRelativeTemplateSourceDirectory | When overridden a derived class, gets the relative URL of the directory for the PageTheme object. |
![]() | ControlSkins | When overridden in a derived class, gets an IDictionary interface of the names of all default skins that are available for the current page theme, indexed by control type. |
![]() | LinkedStyleSheets | When overridden in a derived class, gets an array of style sheets that are linked to this page. |
![]() | Page | Infrastructure. Gets the Page object that is associated with the instance of the PageTheme class. |
| Name | Description | |
|---|---|---|
![]() ![]() | CreateSkinKey | Infrastructure. Creates a lookup key object for a particular control type and skin ID. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Eval(String) | Infrastructure. Uses the DataBinder::Eval(Object, String) method of the Page property that the instance of the PageTheme class is associated with to evaluate a data-binding expression. |
![]() | Eval(String, String) | Infrastructure. Uses the DataBinder::Eval(Object, String, String) method of the Page property that the instance of the PageTheme class is associated with to evaluate a data-binding expression. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | TestDeviceFilter | Tests whether a device filter applies to the Page control that the instance of the PageTheme class is associated with. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | XPath(String) | Infrastructure. Evaluates an XPath data-binding expression. |
![]() | XPath(String, String) | Infrastructure. Evaluates an XPath data-binding expression using the specified format string to display the result. |
![]() | XPath(String, IXmlNamespaceResolver) | Infrastructure. Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution. |
![]() | XPath(String, String, IXmlNamespaceResolver) | Infrastructure. Uses the TemplateControl::XPath method of the Page control that the instance of the PageTheme class is associated with to evaluate an XPath data-binding expression. |
![]() | XPathSelect(String) | Infrastructure. Evaluates an XPath data-binding expression and returns a node collection that implements the IEnumerable interface. |
![]() | XPathSelect(String, IXmlNamespaceResolver) | Infrastructure. Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution and returns a node collection that implements the IEnumerable interface. |
Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly. These classes are used by the ASP.NET parser and runtime to apply style sheet elements that are defined in ASP.NET themes and control skins files to pages and specific types of controls.
Page developers enable (or disable) page themes using the Theme and EnableTheming properties. For more information about page themes, see ASP.NET Themes and Skins.
| Topic | Location |
|---|---|
| How to: Apply ASP.NET Themes Programmatically | Building ASP .NET Web Applications |
| How to: Disable ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Apply ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Define ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Apply ASP.NET Themes Programmatically | Building ASP .NET Web Applications |
| How to: Disable ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Apply ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Define ASP.NET Themes | Building ASP .NET Web Applications |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.



