Export (0) Print
Expand All

ControlSkin Class

Represents a control skin, which is a means to define stylistic properties that are applied to an ASP.NET Web server control.

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

public class ControlSkin
public class ControlSkin
public class ControlSkin
Not applicable.

Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly. These classes are used internally by the ASP.NET page framework to apply server-side properties and cascading style sheet definitions that are defined in ASP.NET themes and control skin files to specific types of controls.

ControlSkin objects represent a named skin or default skin of a Control control at run time and design time. ASP.NET builds PageTheme, ControlSkin and ControlSkinDelegate objects to apply the style elements defined in themes and control skin files to ASP.NET Web pages and controls.

For more information about themes and control skins, see Introduction to ASP.NET Themes.

TopicLocation
How to: Define ASP.NET ThemesBuilding ASP .NET Web Applications
How to: Define ASP.NET ThemesBuilding ASP .NET Web Applications

The following code example demonstrates how control skins are specified for controls in a declarative ASP.NET page. The example shows three ASP.NET server controls found in the same page, two that use the same named skin and one that uses a different skin.

<asp:repeater runat="server" id="Specials" skinid = "ProductSpecialsList" />
<asp:repeater runat="server" id="TopItems" skinid = "ProductList" />
<asp:repeater runat="server" id="Items" skinid = "ProductList" />

System.Object
  System.Web.UI.ControlSkin

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft