Back to Devexpress

DxToastProvider.RenderStyle Property

blazor-devexpress-dot-blazor-dot-dxtoastprovider-db42edd9.md

latest1.7 KB
Original Source

DxToastProvider.RenderStyle Property

Specifies a toast’s predefined style.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
ToastRenderStylePrimary

The render style.

|

Available values:

NameDescription
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

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