Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    DxToast.ThemeMode Property

    Specifies the toast’s predefined color filling mode.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    [Parameter]
    public ToastThemeMode? ThemeMode { get; set; }

    #Property Value

    Type Description
    Nullable<ToastThemeMode>

    The theme mode; null to derive the value from the toast provider.

    Available values:

    Name Description
    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.

    Razor
    <DxToast @ref=toast
              Title="Notification"
              Text="The process is completed."
              RenderStyle="ToastRenderStyle.Info"
              ThemeMode="ToastThemeMode.Saturated" />
    

    Run Demo: Toast Customization

    If the ThemeMode property is not specified, the DxToastProvider.ThemeMode property determines toast theme mode.

    Toast render mode and styles

    See Also