Share via


DragStartingEventArgs.AllowedOperations Property

Definition

Gets or sets 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(); void set(DataPackageOperation value); };
DataPackageOperation AllowedOperations();

void AllowedOperations(DataPackageOperation value);
public DataPackageOperation AllowedOperations { get; set; }
var dataPackageOperation = dragStartingEventArgs.allowedOperations;
dragStartingEventArgs.allowedOperations = dataPackageOperation;
Public 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. It can then be read from the DragEventArgs.AllowedOperations 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