Skip to content

GridView.TryGetContainer method

Gets the row currently showing the item at index. False when that item is not realized, which is the normal state of one scrolled out of view.

public bool TryGetContainer(int index, out GridViewRow? row)

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