Skip to main content

DragDrop Class

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static class DragDrop
View Source
InheritanceObject → DragDrop

Methods

DoDragDrop(PointerEventArgs, IDataObject, DragDropEffects)Starts a dragging operation with the given IDataObject and returns the applied drop effect from the target.
GetAllowDrop(Interactive)Gets a value indicating whether the given element can be used as the target of a drag-and-drop operation.
SetAllowDrop(Interactive, Boolean)Sets a value indicating whether the given interactive can be used as the target of a drag-and-drop operation.

Fields

AllowDropProperty 
DragEnterEventEvent which is raised, when a drag-and-drop operation enters the element.
DragLeaveEventEvent which is raised, when a drag-and-drop operation leaves the element.
DragOverEventEvent which is raised, when a drag-and-drop operation is updated while over the element.
DropEventEvent which is raised, when a drag-and-drop operation should complete over the element.

See Also

Reference

Avalonia.Input Namespace