Back to Devexpress

DxToastProvider.HorizontalAlignment Property

blazor-devexpress-dot-blazor-dot-dxtoastprovider-9a0d9d53.md

latest1.5 KB
Original Source

DxToastProvider.HorizontalAlignment Property

Specifies horizontal alignment applied to toasts.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(HorizontalAlignment.Right)]
[Parameter]
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

TypeDefaultDescription
HorizontalAlignmentRight

The vertical alignment.

|

Available values:

NameDescription
Center

Center alignment.

| | Left |

Left alignment.

| | Right |

Right alignment.

|

Remarks

Use the HorizontalAlignment and VerticalAlignment properties to position toast notifications on the page.

Run Demo: Toast Positioning

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