ItemContainerGeneratorPrepareItemContainer Method
Prepares the specified element as the container for the corresponding item.
Namespace: Avalonia.Controls.GeneratorsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void PrepareItemContainer(
Control container,
Object? item,
int index
)
Public Sub PrepareItemContainer (
container As Control,
item As Object,
index As Integer
)
member PrepareItemContainer :
container : Control *
item : Object *
index : int -> unit
Parameters
- container Control
- The element that's used to display the specified item.
- item Object
- The item to display.
- index Int32
- The index of the item to display.
If
NeedsContainer(Object, Int32, Object) is false for an
item, then this method must only be called a single time; otherwise this method must
be called after the container is created, and each subsequent time the container is
recycled to display a new item.