CoreDragInfo CoreDragInfo CoreDragInfo CoreDragInfo Class

Definition

Gets information about an item being dragged.

public : sealed class CoreDragInfo : ICoreDragInfo, ICoreDragInfo2public sealed class CoreDragInfo : ICoreDragInfo, ICoreDragInfo2Public NotInheritable Class CoreDragInfo Implements ICoreDragInfo, ICoreDragInfo2// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

AllowedOperations AllowedOperations AllowedOperations AllowedOperations

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

public : DataPackageOperation AllowedOperations { get; }public DataPackageOperation AllowedOperations { get; }Public ReadOnly Property AllowedOperations As DataPackageOperation// This API is not available in Javascript.
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Remarks

This property specifies the complete set of operations the source app wishes to allow in drag and drop scenarios. There can be zero or more flags. To get the requested default operation, use the DataPackage.RequestedOperation property.

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

Data Data Data Data

Gets the DataPackageView for the item being dragged.

public : DataPackageView Data { get; }public DataPackageView Data { get; }Public ReadOnly Property Data As DataPackageView// This API is not available in Javascript.

Modifiers Modifiers Modifiers Modifiers

Gets the modifiers for the item being dragged.

public : DragDropModifiers Modifiers { get; }public DragDropModifiers Modifiers { get; }Public ReadOnly Property Modifiers As DragDropModifiers// This API is not available in Javascript.
Value
DragDropModifiers DragDropModifiers DragDropModifiers DragDropModifiers

The modifiers for the item being dragged.

Position Position Position Position

Gets the position of the item being dragged.

public : Point Position { get; }public Point Position { get; }Public ReadOnly Property Position As Point// This API is not available in Javascript.
Value
Point Point Point Point

The position of the item being dragged.