Back to Devexpress

ThemeFluentProperties.Mode Property

blazor-devexpress-dot-blazor-dot-themefluentproperties-3023c1fc.md

latest3.5 KB
Original Source

ThemeFluentProperties.Mode Property

Specifies the theme mode (light or dark).

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.Resources.v25.2.dll

NuGet Package : DevExpress.Blazor.Resources

Declaration

csharp
public ThemeMode Mode { get; set; }

Property Value

TypeDescription
ThemeMode

The theme mode.

|

Available values:

NameDescription
Light

Light theme mode.

| | Dark |

Dark theme mode.

|

Remarks

Refer to the ThemeFluentProperties class description for additional information and an example.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Mode 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.

blazor-editable-grid-with-expandoobject/CS/Expando/Services/DxThemes.cs#L8

csharp
public static readonly ITheme FluentDark = Themes.Fluent.Clone(properties => {
    properties.Mode = ThemeMode.Dark;
    AddFluentTheme(properties);

blazor-grid-customize-group-summaries/CS/GroupSummaries/Services/DxThemes.cs#L8

csharp
public static readonly ITheme FluentDark = Themes.Fluent.Clone(properties => {
    properties.Mode = ThemeMode.Dark;
    AddFluentTheme(properties);

blazor-use-devextreme-diagram/CS/DiagramBlazorApp/Services/DxThemes.cs#L8

csharp
public static readonly ITheme FluentDark = Themes.Fluent.Clone(properties => {
    properties.Mode = ThemeMode.Dark;
    AddFluentTheme(properties);

blazor-grid-disable-selection-checkboxes-by-condition/CS/GridDisabledCheckboxes/Services/DxThemes.cs#L8

csharp
public static readonly ITheme FluentDark = Themes.Fluent.Clone(properties => {
    properties.Mode = ThemeMode.Dark;
    AddFluentTheme(properties);

blazor-richedit-place-control-in-edit-form/CS/Services/DxThemes.cs#L10

csharp
{
    properties.Mode = ThemeMode.Dark;
    AddFluentTheme(properties);

See Also

ThemeFluentProperties Class

ThemeFluentProperties Members

DevExpress.Blazor Namespace