ItemContainerGeneratorItemContainerPrepared Method

Notifies the ItemsControl that a container has been fully prepared to display an item.

Definition

Namespace: Avalonia.Controls.Generators
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void ItemContainerPrepared(
	Control container,
	Object? item,
	int index
)

Parameters

container  Control
The container control.
item  Object
The item being displayed.
index  Int32
The index of the item being displayed.

Remarks

This method must be called when a container has been fully prepared and added to the logical and visual trees, but may be called before a layout pass has completed. It must be called regardless of the result of NeedsContainer(Object, Int32, Object) but if that method returned false then must be called only a single time.

See Also