Share via


CoreDragOperation.AllowedOperations Property

Definition

Gets or sets the allowed DataPackageOperations (none, move, copy, and/or link) for the drag and drop operation.

public:
 property DataPackageOperation AllowedOperations { DataPackageOperation get(); void set(DataPackageOperation value); };
DataPackageOperation AllowedOperations();

void AllowedOperations(DataPackageOperation value);
public DataPackageOperation AllowedOperations { get; set; }
var dataPackageOperation = coreDragOperation.allowedOperations;
coreDragOperation.allowedOperations = dataPackageOperation;
Public Property AllowedOperations As DataPackageOperation

Property Value

The allowed operations. The default is Copy | Move | Link.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

Use this property to set the complete set of operations the source app wishes to allow in drag and drop scenarios. You can specify zero or more flags. To set a desired default operation, use the DataPackage.RequestedOperation property.

Users can override this choices by using SHIFT and CTRL keys. In this case, the target app must inspect the key state to determine the operation the user selected.

Applies to