Back to Devexpress

DxToastProvider.ThemeMode Property

blazor-devexpress-dot-blazor-dot-dxtoastprovider-08cc4bf4.md

latest1.9 KB
Original Source

DxToastProvider.ThemeMode Property

Specifies a toast’s predefined color filling mode.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(ToastThemeMode.Auto)]
[Parameter]
public ToastThemeMode ThemeMode { get; set; }

Property Value

TypeDefaultDescription
ToastThemeModeAuto

The theme mode.

|

Available values:

NameDescription
Auto

Depends on the applied DevExpress theme. For Blazing Berry, Purple, or Office White theme, applies the dark theme to a toast. For the Blazing Dark theme, applies the light theme to a toast.

| | Light |

Applies the light theme to a toast.

| | Dark |

Applies the dark theme to a toast.

| | Saturated |

Applies the saturated theme to a toast.

| | Pastel |

Applies the pastel theme to a toast.

|

Remarks

Use RenderStyle and ThemeMode properties to specify the toast style.

Run Demo: Toast Customization

razor
<DxToastProvider 
    AnimationType="ToastAnimationType.Fade" 
    HorizontalAlignment="HorizontalAlignment.Left"
    VerticalAlignment="VerticalEdge.Top"
    RenderStyle="ToastRenderStyle.Success" 
    ThemeMode="ToastThemeMode.Saturated"/>

See Also

DxToastProvider Class

DxToastProvider Members

DevExpress.Blazor Namespace