PageTheme PageTheme PageTheme PageTheme Class

Definition

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.

public ref class PageTheme abstract
public abstract class PageTheme
type PageTheme = class
Public MustInherit Class PageTheme
Inheritance
PageThemePageThemePageThemePageTheme

Remarks

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.

Constructors

PageTheme() PageTheme() PageTheme() PageTheme()

Initializes a new instance of the PageTheme class.

Properties

AppRelativeTemplateSourceDirectory AppRelativeTemplateSourceDirectory AppRelativeTemplateSourceDirectory AppRelativeTemplateSourceDirectory

When overridden a derived class, gets the relative URL of the directory for the PageTheme object.

ControlSkins ControlSkins ControlSkins 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 LinkedStyleSheets LinkedStyleSheets LinkedStyleSheets

When overridden in a derived class, gets an array of style sheets that are linked to this page.

Page Page Page Page

Gets the Page object that is associated with the instance of the PageTheme class.

Methods

CreateSkinKey(Type, String) CreateSkinKey(Type, String) CreateSkinKey(Type, String) CreateSkinKey(Type, String)

Creates a lookup key object for a particular control type and skin ID.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Eval(String) Eval(String) Eval(String) Eval(String)

Uses the 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) Eval(String, String) Eval(String, String) Eval(String, String)

Uses the 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.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
TestDeviceFilter(String) TestDeviceFilter(String) TestDeviceFilter(String) TestDeviceFilter(String)

Tests whether a device filter applies to the Page control that the instance of the PageTheme class is associated with.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
XPath(String) XPath(String) XPath(String) XPath(String)

Evaluates an XPath data-binding expression.

XPath(String, IXmlNamespaceResolver) XPath(String, IXmlNamespaceResolver) XPath(String, IXmlNamespaceResolver) XPath(String, IXmlNamespaceResolver)

Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution.

XPath(String, String) XPath(String, String) XPath(String, String) XPath(String, String)

Evaluates an XPath data-binding expression using the specified format string to display the result.

XPath(String, String, IXmlNamespaceResolver) XPath(String, String, IXmlNamespaceResolver) XPath(String, String, IXmlNamespaceResolver) XPath(String, String, IXmlNamespaceResolver)

Uses the XPath(String, String, IXmlNamespaceResolver) method of the Page control that the instance of the PageTheme class is associated with to evaluate an XPath data-binding expression.

XPathSelect(String) XPathSelect(String) XPathSelect(String) XPathSelect(String)

Evaluates an XPath data-binding expression and returns a node collection that implements the IEnumerable interface.

XPathSelect(String, IXmlNamespaceResolver) XPathSelect(String, IXmlNamespaceResolver) XPathSelect(String, IXmlNamespaceResolver) XPathSelect(String, IXmlNamespaceResolver)

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.

Applies to

See also