Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

DxToastProvider.Width Property

Specifies the width of the toast notification container.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue("300px")]
[Parameter]
public string Width { get; set; }

#Property Value

Type Default Description
String "300px"

The width in CSS units.

#Remarks

Use the Width property to specify the width of a container that displays toast notifications.

Toast notification height is determined automatically based on toast content. You can limit the maximum toast height for every toast (DxToastProvider.MaxHeight) or a specified toast (DxToast.MaxHeight orToastOptions.MaxHeight).

razor
<DxToastProvider 
    ThemeMode=ToastThemeMode.Pastel 
    DisplayTime="@TimeSpan.FromSeconds(20)" .
    FreezeOnClick="true"
    MaxHeight="150px"
    Width="400px"/>
See Also