Back to Devexpress

ASPxWebControl.Theme Property

aspnet-devexpress-dot-web-dot-aspxwebcontrol.md

latest1.9 KB
Original Source

ASPxWebControl.Theme Property

Gets or sets the name of the Theme to be applied to the control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string Theme { get; set; }
vb
<DefaultValue("")>
Public Overridable Property Theme As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value specifying the theme name.

|

Remarks

Use the Theme property to apply a DevExpress Theme to an individual DevExpress web control.

aspx
<dx:ASPxMenu ID="ASPxMenu1" runat="server" Theme="Aqua">
    ...
</dx:ASPxMenu>
csharp
protected void Page_PreInit(object sender, EventArgs e) {
    ASPxMenu.Theme = "Aqua";
}

See Also

Appearance Customization - Theming

GlobalTheme

GlobalStyleSheetTheme

Theme Name

ASPxWebControl Class

ASPxWebControl Members

DevExpress.Web Namespace