Back to Devexpress

DragDropBehaviorProperties.AllowDrag Property

windowsforms-devexpress-dot-utils-dot-dragdrop-dot-dragdropbehaviorproperties-2e9a6a20.md

latest2.1 KB
Original Source

DragDropBehaviorProperties.AllowDrag Property

Gets or sets whether users are allowed to drag data elements from the control.

Namespace : DevExpress.Utils.DragDrop

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue(true)]
[DXCategory("DragDrop")]
public bool AllowDrag { get; set; }
vb
<DefaultValue(True)>
<DXCategory("DragDrop")>
Public Property AllowDrag As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if users are allowed to drag data elements from the control; otherwise, false.

|

Remarks

Set the AllowDrag property to false to use the attached control as the target of drag operations only.

To use the attached control as the source only, set the AllowDrop property to false. You can use the DragEnter event’s AllowDrop argument to override this setting for a particular control. You can also use the Cursor event argument to specify the mouse pointer that indicates whether it is allowed to drop items onto the control.

See Also

DragDropBehaviorProperties Class

DragDropBehaviorProperties Members

DevExpress.Utils.DragDrop Namespace