Back to Devexpress

DashboardStyleSheetsSettingsBuilder Class

dashboard-devexpress-dot-dashboardaspnetcore-d39a5fdd.md

latest2.3 KB
Original Source

DashboardStyleSheetsSettingsBuilder Class

Contains methods that allow you to manage the control’s color scheme.

Namespace : DevExpress.DashboardAspNetCore

Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public class DashboardStyleSheetsSettingsBuilder
vb
Public Class DashboardStyleSheetsSettingsBuilder

The following members return DashboardStyleSheetsSettingsBuilder objects:

Remarks

You can use the following values to define the Web Dashboard’s color scheme:

Color schemeDescription
lightIdentifies the Light color scheme.
light.compactIdentifies the Light compact color scheme.
darkIdentifies the Dark color scheme.
dark.compactIdentifies the Dark compact color scheme.

To apply a required color scheme, pass its name to the DashboardStyleSheetsSettingsBuilder.ColorScheme method using the lambda expression.

cshtml
<head>
    <title>AspNetCoreWebDashboard</title>
    @Html.DevExpress().StyleSheets(styles => styles.AddDashboard(settings => settings.ColorScheme("dark.compact")))
    <!-- ... -->
</head>

Inheritance

Object DashboardStyleSheetsSettingsBuilder

See Also

DashboardStyleSheetsSettingsBuilder Members

Themes and Styles for an ASP.NET Core Application

DevExpress.DashboardAspNetCore Namespace