-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.ItemsRepeater.TryGetElement(System.Int32) |
winrt method |
Retrieves the realized UIElement that corresponds to the item at the specified index in the data source.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
The index of the item.
The UIElement that corresponds to the item at the specified index if the item is realized, or null if the item is not realized.
An item is realized when a UIElement has been prepared to display it. Requesting the element for an item that is not realized does not cause it to be realized; instead it is reported as null.