ItemsRepeater.

GetOrCreateElement(int) Method

Summary

Retrieves the UIElement that corresponds to the item at the specified index in the data source.
Namespace
Avalonia.Controls
Containing Type
ItemsRepeater

Syntax

public IControl GetOrCreateElement(int index)

Parameters

Name Type Description
index int The index of the item.

Return Value

Type Description
IControl An IControl that corresponds to the item at the specified index. If the item is not realized, a new UIElement is created.