Skip to main content
All docs
V24.2

DxToastProvider.RenderStyle Property

Specifies a toast’s predefined style.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(ToastRenderStyle.Primary)]
[Parameter]
public ToastRenderStyle RenderStyle { get; set; }

Property Value

Type Default Description
ToastRenderStyle Primary

The render style.

Available values:

Name Description
Primary

Applies the primary style to a toast.

Info

Applies the info style to a toast.

Success

Applies the success style to a toast.

Warning

Applies the warning style to a toast.

Danger

Applies the danger style to a toast.

Remarks

Use RenderStyle and ThemeMode properties to specify the toast style.

Run Demo: Toast Customization

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

Toast render mode and styles

See Also