VirtualListElement.OnReorder property
Optional — turns on drag-and-drop REORDERING of the list’s items, with the same gesture and semantics as OnReorder: a press on a row that moves past ~6 screen px starts a drag (the row dims, a ghost follows the cursor, an accent bar marks the insertion point between rows); dropping fires OnReorder(from, to) with REMOVE-THEN-INSERT semantics over the FULL item index space (0..Count()-1, not pool-slot indices), so the consumer does var x = list[from]; list.RemoveAt(from); list.Insert(to, x);. It never fires for a no-op drop. Esc, or a drop outside the list’s viewport, cancels. A press released before the threshold is an ordinary click; after a real drag the click is swallowed. Holding the drag near the top or bottom edge of the viewport (within about one row) AUTO-SCROLLS the list, faster the closer to the edge, so an item can be moved past the visible rows; the dragged item keeps its identity while its pool slot is recycled. The list does not reflow mid-drag — the consumer reorders its data and the list re-pulls. Uniform rows only: ignored when VariableHeight is set. Default null = not reorderable (the list behaves exactly as before). An init property (binary-compatible); a plugin that sets it needs framework ≥2.29.0.
public Action<int, int>? OnReorder { get; set; }See Also
Section titled “See Also”- record VirtualListElement
- namespace Stellar.Abstractions.Services