Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 964 Bytes

virtualizinglayoutcontext_getorcreateelementat_171326460.md

File metadata and controls

35 lines (20 loc) · 964 Bytes
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.VirtualizingLayoutContext.GetOrCreateElementAt(System.Int32)
winrt method

Microsoft.UI.Xaml.Controls.VirtualizingLayoutContext.GetOrCreateElementAt(System.Int32)

-description

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.

-parameters

-param index

The index of the data item to retrieve a UIElement for.

-returns

A UIElement that represents the data item.

-remarks

This method calls GetOrCreateElementAtCore(System.Int32,Microsoft.UI.Xaml.Controls.ElementRealizationOptions) with options set to None.

GetElementAtCore must be implemented in a derived class.

-see-also

-examples