VirtualizingLayoutContext.

GetOrCreateElementAtCore(int, ElementRealizationOptions) Method

Summary

When implemented in a derived class, retrieves a UIElement that represents the data item in the source found at the specified index using the specified options.
Namespace
Avalonia.Layout
Containing Type
VirtualizingLayoutContext

Syntax

protected abstract ILayoutable GetOrCreateElementAtCore(int index, ElementRealizationOptions options)

Parameters

Name Type Description
index int The index of the data item to retrieve a UIElement for.
options ElementRealizationOptions A value of ElementRealizationOptions that specifies whether to suppress automatic recycling of the retrieved element or force creation of a new element.

Return Value

Type Description
ILayoutable