Share via


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.

public:
 property DataPackageOperation AllowedOperations { DataPackageOperation get(); };
DataPackageOperation AllowedOperations();
public DataPackageOperation AllowedOperations { get; }
var dataPackageOperation = dragEventArgs.allowedOperations;
Public ReadOnly Property AllowedOperations As DataPackageOperation

Property Value

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

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

See also