Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DragEventArgs Class

Definition

Namespace:
Microsoft.Maui.Controls
Assembly:
Microsoft.Maui.Controls.dll
Source:
DragEventArgs.cs
Source:
DragEventArgs.cs
Source:
DragEventArgs.cs
Source:
DragEventArgs.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides data for the DragOver and DragLeave events.

public ref class DragEventArgs : EventArgs
public class DragEventArgs : EventArgs
type DragEventArgs = class
 inherit EventArgs
Public Class DragEventArgs
Inherits EventArgs
Inheritance
DragEventArgs

Constructors

Name Description
DragEventArgs(DataPackage)

Initializes a new instance of the DragEventArgs class.

Properties

Name Description
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

Name Description
GetPosition(Element)

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

Applies to


Feedback

Was this page helpful?