Muokkaa

Jaa


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
PageTheme

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()

Initializes a new instance of the PageTheme class.

Properties

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

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

Methods

CreateSkinKey(Type, String)

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, 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.

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.

GetHashCode()

Serves as the default hash function.

(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(String)

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, IXmlNamespaceResolver)

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

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.

XPath(String, String)

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

XPath(String)

Evaluates an XPath data-binding expression.

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.

XPathSelect(String)

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

Applies to

See also