Skip to content
Version 2.32.0
↓ Get the launcher

VirtualListElement.StableSlots property

Optional — keep each data row in the SAME pool slot for as long as it stays in the window (VariableHeight mode only). Normally pool slot k shows row first + k, so whenever first moves by one — every append to a bottom-pinned StickToBottom list that is longer than the pool, and every scroll step — EVERY slot is rebound to a different row (new text, new avatar, a bubble width re-solve each). With this set, row l lives in slot l % Pool.Count: a one-row shift recycles only the slot whose row left the window, and every other slot keeps its content untouched. OnWindow still reports first; the row Funcs must then resolve slot k through StableSlotRow(first, k, Pool.Count) instead of first + k. Default false = unchanged. An init property (binary-compatible).

public bool StableSlots { get; set; }