Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxFlyout.Offset Property

Specifies the window’s offset.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public int? Offset { get; set; }

#Property Value

Type Description
Nullable<Int32>

The offset in pixels.

#Remarks

Use the PositionTarget and Position properties to specify the position where the flyout window appears. The Offset property allows you to offset the window relative to the selected position.

  • For the top and bottom positions, this property specifies the horizontal offset.
  • For the left and right positions, this property specifies the vertical offset.
Razor
<DxButton Id="show-flyout" Click="() => IsOpen = !IsOpen">Show a flyout window</DxButton>
<DxFlyout @bind-IsOpen="@IsOpen" Width="210"
            BodyText="Lorem ipsum dolor sit amet"
            PositionTarget="#show-flyout"
            Position="FlyoutPosition.BottomStart"
            Offset="70">
</DxFlyout>

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

Blazor Flyout Offsets

See Also