DropMove record struct Core
A move a DropList asks its owner to make: an item dropped on it (from itself, from another list or from elsewhere), or moved by the keyboard. The list changes nothing itself; the owner moves the item in its model and gives the lists their new chips (DropList.SetItems).
public readonly record struct DropMove
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease
Constructors
DropMove
public DropMove(object Payload, Chip? Item, DropList? From, int FromIndex, DropList To, int Index);A move a DropList asks its owner to make: an item dropped on it (from itself, from another list or from elsewhere), or moved by the keyboard. The list changes nothing itself; the owner moves the item in its model and gives the lists their new chips (DropList.SetItems).
Parameters
PayloadWhat the drag carried (
Chip.DragPayload).ItemThe chip that was dragged, or null when the drag came from another kind of control.
FromThe list the chip was in, or null when it came from elsewhere.
FromIndexIts index there, or -1.
ToThe list it goes to.
IndexIts index there, counted after it left
Fromwhen both lists are the same.
Properties
From
public DropList? From { get; init; }The list the chip was in, or null when it came from elsewhere.
FromIndex
public int FromIndex { get; init; }Its index there, or -1.
Index
public int Index { get; init; }Its index there, counted after it left From when both lists are the same.
Item
public Chip? Item { get; init; }The chip that was dragged, or null when the drag came from another kind of control.
Payload
public object Payload { get; init; }What the drag carried (Chip.DragPayload).
To
public DropList To { get; init; }The list it goes to.