-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.VirtualizingLayoutContext.GetOrCreateElementAt(System.Int32) |
winrt method |
Retrieves a UIElement that represents the data item in the source found at the specified index. By default, if an element already exists, it is returned; otherwise, a new element is created.
The index of the data item to retrieve a UIElement for.
A UIElement that represents the data item.
This method calls GetOrCreateElementAtCore(System.Int32,Microsoft.UI.Xaml.Controls.ElementRealizationOptions) with options set to None.
GetElementAtCore must be implemented in a derived class.