DevExpressHelper.Theme Property

Specifies the theme to be applied to all DevExpress extensions within an application.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

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

Property Value

Type Description
String

A string value specifying the theme name. Refer to Available Themes, for the list of theme names.

Remarks

Refer to Applying Themes to learn more.

Example

_Layout Page:

<head runat="server">
    ...
    <% Html.DevExpress().RenderStyleSheets(Page, 
                new StyleSheet { ExtensionSuite = ExtensionSuite.GridView, Theme = "Aqua"},
                new StyleSheet { ExtensionSuite = ExtensionSuite.PivotGrid, Theme = "Aqua"},
                new StyleSheet { ExtensionSuite = ExtensionSuite.HtmlEditor, Theme = "Aqua"},
                new StyleSheet { ExtensionSuite = ExtensionSuite.Editors, Theme = "Aqua"},
                new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout, Theme = "Aqua"},
                new StyleSheet { ExtensionSuite = ExtensionSuite.Chart, Theme = "Aqua"},
                new StyleSheet { ExtensionSuite = ExtensionSuite.Report, Theme = "Aqua"}
           ); %>
</head>

Global.asax.cs Code:

using DevExpress.Web.Mvc;


...
        protected void Application_PreRequestHandlerExecute(object sender, EventArgs e) {
            DevExpressHelper.Theme = "Aqua";
        }
...
See Also