Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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

    DxWindow.AllowDragByHeaderOnly Property

    Specifies whether a user can start window drag-and-drop in the header only or anywhere in the client area.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    [DefaultValue(true)]
    [Parameter]
    public bool AllowDragByHeaderOnly { get; set; }

    #Property Value

    Type Default Description
    Boolean true

    true to allow users to drag the window by its header only; false to allow users to drag the window by its header, body, or footer.

    #Remarks

    When the AllowDrag property is set to true, users can drag the window by its header. Disable the AllowDragByHeaderOnly option and users can start a drag-and-drop operation in any element – header, body, or footer.

    Razor
    <DxWindow AllowDrag="true"
             AllowDragByHeaderOnly="false"
             HeaderText="Window"
             @bind-Visible="@WindowVisible"
             BodyText="@Constants.Text" />
    

    Run Demo: Window - Dragging

    See Also