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

DragEnterEventArgs.AllowDrop Property

Gets or sets whether it is allowed to drop data elements to the target control.

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

public bool AllowDrop { get; set; }

#Property Value

Type Description
Boolean

true to allow users to drop data elements to the target 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