Skip to content

TreeView.TryGetContainer method

Gets the container currently showing the visible row at index, counted over the expanded nodes. False when that row is not realized, which is the normal state of one scrolled out of view.

public bool TryGetContainer(int index, out ItemContainer? container)

Containers are recycled: use the result at once rather than keeping it, since it may hold another node after the next layout.