DragDrop Class
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static class DragDrop
Public NotInheritable Class DragDrop
[<AbstractClassAttribute>]
[<SealedAttribute>]
type DragDrop = class end
| Inheritance | Object → DragDrop |
Methods
| AddDragEnterHandler(Interactive, EventHandler(DragEventArgs)) | Adds a handler for the DragEnter attached event. |
| AddDragLeaveHandler(Interactive, EventHandler(DragEventArgs)) | Adds a handler for the DragLeave attached event. |
| AddDragOverHandler(Interactive, EventHandler(DragEventArgs)) | Adds a handler for the DragOver attached event. |
| AddDropHandler(Interactive, EventHandler(DragEventArgs)) | Adds a handler for the Drop attached event. |
| DoDragDrop(PointerEventArgs, IDataObject, DragDropEffects) | Starts a dragging operation with the given IDataObject and returns the applied drop effect from the target. Obsolete. |
| DoDragDropAsync(PointerEventArgs, IDataTransfer, DragDropEffects) | Starts a dragging operation with the given IDataTransfer 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. |
| RemoveDragEnterHandler(Interactive, EventHandler(DragEventArgs)) | Removes a handler for the DragEnter attached event. |
| RemoveDragLeaveHandler(Interactive, EventHandler(DragEventArgs)) | Removes a handler for the DragLeave attached event. |
| RemoveDragOverHandler(Interactive, EventHandler(DragEventArgs)) | Removes a handler for the DragOver attached event. |
| RemoveDropHandler(Interactive, EventHandler(DragEventArgs)) | Removes a handler for the Drop attached event. |
| 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 | |
| DragEnterEvent | Event which is raised, when a drag-and-drop operation enters the element. |
| DragLeaveEvent | Event which is raised, when a drag-and-drop operation leaves the element. |
| DragOverEvent | Event which is raised, when a drag-and-drop operation is updated while over the element. |
| DropEvent | Event which is raised, when a drag-and-drop operation should complete over the element. |