DevExpressHelper.StyleSheetTheme Property
Allows you to specify the name of the theme applied to the DevExpress ASP.NET MVC Extensions before extension settings are applied.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
String | The name of the theme that is applied to the DevExpress ASP.NET MVC Extensions before extension settings are applied. |
Remarks
The StyleSheetTheme property specifies the name of a theme that is applied to the DevExpress ASP.NET MVC Extensions before extension settings are applied, whereas the DevExpressHelper.Theme property specifies the name of a theme that is applied to the DevExpress ASP.NET MVC Extensions after the extension settings have been applied. In other words, extension settings take precedence over settings in the theme, defined using the StyleSheetTheme property.
You can define the StyleSheetTheme property value in the Web.config or the Global.asax file:
The code sample below demonstrates how to define the StyleSheetTheme property value in the Web.config file.
<configuration> <!-- ... --> <devExpress> <themes enableThemesAssembly="true" styleSheetTheme="MetropolisBlue" theme="" customThemeAssemblies="" /> </devExpress> </configuration>
The code sample below demonstrates how to define the StyleSheetTheme property value in the Global.asax file.
using DevExpress.Web.Mvc; //... protected void Application_PreRequestHandlerExecute(object sender, EventArgs e) { DevExpressHelper.StyleSheetTheme = "MetropolisBlue"; }