Tab
A newer version of this page is available. Switch to the current version.

ASPxWebControl.GlobalTheme Property

Gets or sets the name of the Theme to be globally applied to all DevExpress web controls across the entire web site.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public static string GlobalTheme { get; set; }
Public Shared Property GlobalTheme As String

Property Value

Type Description
String

A string value specifying the theme name.

Remarks

Use the GlobalTheme property to apply the selected Theme to all DevExpress web controls within the web site. If the GlobalTheme property is not specified, it returns the theme Web.config option value.

Depending on your application needs, you can use the GlobalTheme property at different levels within your application. The main requirement is that a global theme should be explicitly assigned on executing each request.

  • Page Level

    
    protected void Page_PreInit(object sender, EventArgs e){
            DevExpress.Web.ASPxWebControl.GlobalTheme = "Aqua";
        }
    
  • Application Level - in Global.asax

    
    protected void Application_PreRequestHandlerExecute(object sender, EventArgs e) {
                DevExpress.Web.ASPxWebControl.GlobalTheme = "Aqua";
            }
    
See Also