Back to Devexpress

DxDropDown.AllowResize Property

blazor-devexpress-dot-blazor-dot-dxdropdown-15191a20.md

latest1.6 KB
Original Source

DxDropDown.AllowResize Property

Specifies whether the drop-down window can be resized.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public bool AllowResize { get; set; }

Property Value

TypeDescription
Boolean

true, to enable window resizing; otherwise, false.

|

Remarks

You can restrict drop-down window sizes with the following properties: MinWidth, MinHeight, MaxWidth, and MaxHeight.

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