Table of Contents

Class DragEventArgs

Namespace
Avalonia.Input
Assembly
Avalonia.Base.dll
public class DragEventArgs : RoutedEventArgs
Inheritance
DragEventArgs
Inherited Members

Constructors

DragEventArgs(RoutedEvent<DragEventArgs>, IDataObject, Interactive, Point, KeyModifiers)

[Unstable("This constructor might be removed in 12.0. For unit testing, consider using DragDrop.DoDragDrop or IHeadlessWindow.DragDrop.")]
public DragEventArgs(RoutedEvent<DragEventArgs> routedEvent, IDataObject data, Interactive target, Point targetLocation, KeyModifiers keyModifiers)

Parameters

routedEvent RoutedEvent<DragEventArgs>
data IDataObject
target Interactive
targetLocation Point
keyModifiers KeyModifiers

Properties

Data

public IDataObject Data { get; }

Property Value

IDataObject

DragEffects

public DragDropEffects DragEffects { get; set; }

Property Value

DragDropEffects

KeyModifiers

public KeyModifiers KeyModifiers { get; }

Property Value

KeyModifiers

Methods

GetPosition(Visual)

public Point GetPosition(Visual relativeTo)

Parameters

relativeTo Visual

Returns

Point