Skip to main content

DxDropDown.VerticalOffset Property

Gets the window’s vertical offset.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public int VerticalOffset { get; set; }

Property Value

Type Description
Int32

The vertical offset in pixels.

Remarks

Use the PositionTarget and PositionMode properties to specify the position where the drop-down window appears. The HorizontalOffset and VerticalOffset properties allow you to offset the window relative to the selected position.

<DxButton Id="showDDbtton" Click="() => IsOpen = true">Show a drop-down window</DxButton>
<DxDropDown PositionTarget="#showDDbtton"
            PositionMode="DropDownPositionMode.Bottom"
            HorizontalOffset="120"
            VerticalOffset="70"
            Width="210px"
            BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
            @bind-IsOpen="@IsOpen">
</DxDropDown>

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

Blazor DropDown Offsets

See Also