Back to Devexpress

DxDropDown.MinHeight Property

blazor-devexpress-dot-blazor-dot-dxdropdown-3b960003.md

latest1.9 KB
Original Source

DxDropDown.MinHeight Property

Specifies the minimum height of the drop-down window.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
String

The height, in CSS units.

|

Remarks

When the AllowResize property is set to true, users can resize the drop-down window. Use the following properties to restrict changes to the window: MinWidth, MinHeight, MaxWidth, and MaxHeight.

The Height and Width properties specify the initial size of the window.

razor
<DxButton Id="showDDbtton" Click="() => IsOpen = true">Show a drop-down window</DxButton>
<DxDropDown AllowResize="true"
            MinWidth="200"
            Width="max(25vw, 300px)"
            MaxWidth="400"
            MinHeight="200"
            Height="250"
            MaxHeight="400"
            BodyText="Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
            @bind-IsOpen="@IsOpen"
            PositionTarget="#showDDbtton"
            PositionMode="DropDownPositionMode.Bottom">
</DxDropDown>

@code {
    bool IsOpen { get; set; } = false;
}

See Also

DxDropDown Class

DxDropDown Members

DevExpress.Blazor Namespace