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.v19.2.dll
Declaration
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"; }
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GlobalTheme property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.