Skip to content
Version 2.32.0
↓ Get the launcher

VirtualListElement.OnAtBottomChanged property

Optional — invoked on the main thread whenever the list’s “at the bottom” state FLIPS, and once with the initial state after the list first lays out (and again after a window rebuild). “At the bottom” is exactly the decision StickToBottom uses to keep the view pinned on an append, so the two never disagree: within a couple of px of the bottom, and content that fits inside the viewport counts as at the bottom. Typical use: a chat “↓ N new messages” bar shown while the reader is scrolled up. Reported only for a VariableHeight + StickToBottom list (never invoked otherwise). The state is read once per window refresh, so a flip reaches the callback up to one refresh late. Default null = unchanged. An init property (binary-compatible).

public Action<bool>? OnAtBottomChanged { get; set; }