Skip to main content
A newer version of this page is available. .
Tab

ASPxWebControl.GlobalThemeBaseColor Property

Gets or sets the base color for the theme to be globally applied to all DevExpress web controls across a web page or entire web site.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public static string GlobalThemeBaseColor { get; set; }

Property Value

Type Description
String

A string value specifying the base color.

Remarks

Use the GlobalThemeBaseColor property to specify the base color of the Theme to be applied to all DevExpress web controls within the web site.

Depending on your application needs, you can use the GlobalThemeBaseColor property at different levels within your application.

  • Page Level

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

    
    protected void Application_PreRequestHandlerExecute(object sender, EventArgs e) {
                DevExpress.Web.ASPxWebControl.GlobalThemeBaseColor = "Green";
            }
    

See Changing Theme Base Color and Font Settings for more information.

See Also