Share via


DragOperation Class

Definition

Manages the overall drag and drop operation.

public ref class DragOperation sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65540, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DragOperation final : IClosable
[Windows.Foundation.Metadata.Activatable(65540, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DragOperation : System.IDisposable
function DragOperation()
Public NotInheritable Class DragOperation
Implements IDisposable
Inheritance
Object Platform::Object IInspectable DragOperation
Attributes
Implements

Constructors

DragOperation()

Initializes a new instance of the DragOperation class.

Properties

AllowedOperations

Gets or sets the a bitwise combination of zero or more actions to perform on the content being dragged.

Data

Gets the content to exchange in the drag and drop operation.

DragUIContentMode

Gets or sets how the UI visual is provided when dragging an object.

Methods

Close()

Releases system resources used by the DragOperation.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap, Point)

Specifies that the specified bitmap image should be used as a custom drag visual (displayed at the specified offset from the input pointer) during the drag and drop operation.

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap)

Specifies that the specified bitmap image should be used as a custom drag visual during the drag and drop operation.

StartAsync(DragDropManager, PointerPoint)

Starts the drag and drop operation for the specified DragDropManager using the specified input pointer.

Applies to