Skip to main content

DevExpressHelper.Theme Property

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

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static string Theme { get; set; }

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";
        }
...

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Theme 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.

See Also