blazor-devexpress-dot-blazor-dot-dxtoast-aca75be7.md
Specifies the toast’s predefined style.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public ToastRenderStyle? RenderStyle { get; set; }
| Type | Description |
|---|---|
| Nullable<ToastRenderStyle> |
The render style; null to derive the value from the toast provider.
|
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.
|
Use RenderStyle and ThemeMode properties to specify the toast style.
<DxToast @ref=toast
Title="Notification"
Text="The process is completed."
RenderStyle="ToastRenderStyle.Info"
ThemeMode="ToastThemeMode.Saturated" />
If the RenderStyle property is not specified, the DxToastProvider.RenderStyle property determines the toast render style.
See Also