Export (0) Print
Expand All

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.

System.Object
  System.Web.UI.PageTheme

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public abstract class PageTheme

The PageTheme type exposes the following members.

  NameDescription
Protected methodPageThemeInfrastructure. Initializes a new instance of the PageTheme class.
Top

  NameDescription
Protected propertyAppRelativeTemplateSourceDirectoryWhen overridden a derived class, gets the relative URL of the directory for the PageTheme object.
Protected propertyControlSkinsWhen 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.
Protected propertyLinkedStyleSheetsWhen overridden in a derived class, gets an array of style sheets that are linked to this page.
Protected propertyPageInfrastructure. Gets the Page object that is associated with the instance of the PageTheme class.
Top

  NameDescription
Public methodStatic memberCreateSkinKeyInfrastructure. Creates a lookup key object for a particular control type and skin ID.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodEval(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.
Protected methodEval(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.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodTestDeviceFilterTests whether a device filter applies to the Page control that the instance of the PageTheme class is associated with.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodXPath(String)Infrastructure. Evaluates an XPath data-binding expression.
Protected methodXPath(String, String)Infrastructure. Evaluates an XPath data-binding expression using the specified format string to display the result.
Protected methodXPath(String, IXmlNamespaceResolver)Infrastructure. Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution.
Protected methodXPath(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.
Protected methodXPathSelect(String)Infrastructure. Evaluates an XPath data-binding expression and returns a node collection that implements the IEnumerable interface.
Protected methodXPathSelect(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.
Top

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.

TopicLocation
How to: Apply ASP.NET Themes ProgrammaticallyBuilding ASP .NET Web Applications
How to: Disable ASP.NET ThemesBuilding ASP .NET Web Applications
How to: Apply ASP.NET ThemesBuilding ASP .NET Web Applications
How to: Define ASP.NET ThemesBuilding ASP .NET Web Applications
How to: Apply ASP.NET Themes ProgrammaticallyBuilding ASP .NET Web Applications
How to: Disable ASP.NET ThemesBuilding ASP .NET Web Applications
How to: Apply ASP.NET ThemesBuilding ASP .NET Web Applications
How to: Define ASP.NET ThemesBuilding ASP .NET Web Applications

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft