DragDrop Class

Namespace
Avalonia.Input
Base Types
  • object
graph BT Type-->Base0["object"] Type["DragDrop"] class Type type-node

Syntax

public static class DragDrop

Fields

Name Constant Value Summary
AllowDropProperty
static
DragEnterEvent
Event which is raised, when a drag-and-drop operation enters the element.
static
DragLeaveEvent
Event which is raised, when a drag-and-drop operation leaves the element.
static
DragOverEvent
Event which is raised, when a drag-and-drop operation is updated while over the element.
static
DropEvent
Event which is raised, when a drag-and-drop operation should complete over the element.
static

Methods

Name Value Summary
DoDragDrop(PointerEventArgs, IDataObject, DragDropEffects) Task<DragDropEffects>
Starts a dragging operation with the given IDataObject and returns the applied drop effect from the target.
static
GetAllowDrop(Interactive) bool
Gets a value indicating whether the given element can be used as the target of a drag-and-drop operation.
static
SetAllowDrop(Interactive, bool) void
Sets a value indicating whether the given interactive can be used as the target of a drag-and-drop operation.
static