Share via


CoreDragOperation Class

Definition

Handles a drag and drop operation.

public ref class CoreDragOperation sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CoreDragOperation final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class CoreDragOperation final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CoreDragOperation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CoreDragOperation
Public NotInheritable Class CoreDragOperation
Inheritance
Object Platform::Object IInspectable CoreDragOperation
Attributes

Windows requirements

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

Remarks

Version history

Windows version SDK version Value added
1511 10586 AllowedOperations

Constructors

CoreDragOperation()

Initializes a new instance of the CoreDragOperation class.

Properties

AllowedOperations

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

Data

Gets the DataPackage for the drag and drop operation.

DragUIContentMode

Gets or sets the content mode for the drag UI.

Methods

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap, Point)

Sets custom drag UI content using a software bitmap.

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap)

Sets custom drag UI content using a software bitmap.

SetPointerId(UInt32)

Sets the pointer Id.

StartAsync()

Starts the drag and drop operation.

Applies to