Skip to main content
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.v24.1.dll

NuGet Package: DevExpress.Web

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