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.MaxHeight Property

Limits the maximum height of toast notifications.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public string MaxHeight { get; set; }

#Property Value

Type Description
String

The height in CSS units.

#Remarks

A toast notification height is determined automatically based on toast content. Use the MaxHeight property to limit the maximum toast height. You can use the DxToast.MaxHeight or ToastOptions.MaxHeight property to specify a height limit for a particular toast.

The DxToastProvider.Width property determines the toast width, which is the same for every toast in a provider.

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