DragEventArgs.AllowedOperations Property

Definition

Gets a value that specifies which operations (none, move, copy, and/or link) are allowed by the source of the drag event.

C#
public DataPackageOperation AllowedOperations { get; }

Property Value

A value or bitwise combination of values that specifies which operations are allowed by the source of the drag event.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

This value is set in the UIElement.DragStarting event handler via the DragStartingEventArgs.AllowedOperations property. It can then be read from this property in the DragEnter and DragOver events of the UIElement that is a potential drop target of the drag and drop operation. It notifies the target which data package operations (none, move, copy, and/or link) are allowed by the source.

For more info about the allowed data operations, see the DataPackageOperation enumeration.

Applies to

Product Versions
WinRT Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100