Back to Devexpress

DxToast.MaxHeight Property

blazor-devexpress-dot-blazor-dot-dxtoast-85942428.md

latest1.3 KB
Original Source

DxToast.MaxHeight Property

Limits the maximum height of the toast notification.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string MaxHeight { get; set; }

Property Value

TypeDefaultDescription
Stringnull

The height in CSS units; null to derive the value from the toast provider.

|

Remarks

A toast notification height is determined automatically based on toast content. You can use the MaxHeight property to limit the maximum toast height. The DxToastProvider.Width property determines the toast width, which is the same for every toast in a provider.

razor
<DxToastProvider Width="400px" />
<DxToast @ref=toast MaxHeight="150px"
         Title="Notification"
         Text="The process is completed." />

See Also

DxToast Class

DxToast Members

DevExpress.Blazor Namespace