Back to Devexpress

DxPopup.AllowDragByHeaderOnly Property

blazor-devexpress-dot-blazor-dot-dxpopup.md

latest1.5 KB
Original Source

DxPopup.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.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

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
<DxPopup AllowDrag="true"
         AllowDragByHeaderOnly="false"
         HeaderText="Popup"
         @bind-Visible="@PopupVisible"
         BodyText="@Constants.Text" />

Run Demo: Popup - Dragging

See Also

DxPopup Class

DxPopup Members

DevExpress.Blazor Namespace