DragEventArgs Class

Definition

Provides data for the DragOver and DragLeave events.

C#
public class DragEventArgs : EventArgs
Inheritance
DragEventArgs

Constructors

DragEventArgs(DataPackage)

Initializes a new instance of the DragEventArgs class.

Properties

AcceptedOperation

Gets or sets a value that specifies which operations are allowed by the drop target.

Data

Gets the data package associated with the drag source.

PlatformArgs

Gets the platform-specific arguments associated with the DragEventArgs.

Methods

GetPosition(Element)

Gets the location of the drag relative to the specified element.

Applies to

Product Versions
.NET MAUI 8, 9