Back to Devexpress

DxToastProvider.MaxHeight Property

blazor-devexpress-dot-blazor-dot-dxtoastprovider-31ca0b58.md

latest1.5 KB
Original Source

DxToastProvider.MaxHeight Property

Limits the maximum height of toast notifications.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string MaxHeight { get; set; }

Property Value

TypeDescription
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

DxToastProvider Class

DxToastProvider Members

DevExpress.Blazor Namespace