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.
The allowed operations.
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.
The DataPackageView for the item being dragged.
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.
The modifiers for the item being dragged.