Vixen
dd8b0a81
csharp
public sealed class DragSession

A drag that started inside the application and has not been let go yet.

Read the guide page for this →

Remarks

⚠ One per document, not one per pointer. A second finger arriving in the middle of a drag is a gesture the recogniser is already reading as a pinch, and two simultaneous drags with two payloads is a shape no application in this tree wants and every part of which would have to be threaded through the target's events. BeginDrag replaces an unfinished one rather than stacking it.

Fields and properties (7)

  • public UiElement Source

    The element the drag started on.

  • public DataObject Data

    What is being dragged.

  • public DropEffect Allowed

    Everything the source is willing to have happen.

  • public UiElement? Target

    The drop target the pointer is over, if any.

  • public DropEffect Effect

    What that target last said it would do.

  • public float X

    Where the drag is, in surface coordinates.

  • public float Y

    The other half of X.

Used by (5)

  • HierarchyHelloUi
  • DropMarkupTestsVixen.Ui.Controls.Tests
  • InAppDragTestsVixen.Ui.Tests
  • KeyboardDragTestsVixen.Ui.Tests
  • UiDocumentVixen.Ui