blazor-devexpress-dot-blazor-dot-dxdropdown-3b962923.md
Gets the window’s vertical offset.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public int VerticalOffset { get; set; }
| Type | Description |
|---|---|
| Int32 |
The vertical offset in pixels.
|
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;
}
See Also