ItemContainerGeneratorClearItemContainer Method

Undoes the effects of the PrepareItemContainer(Control, Object, Int32) method.

Definition

Namespace: Avalonia.Controls.Generators
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void ClearItemContainer(
	Control container
)

Parameters

container  Control
The container control.

Remarks

This method must be called when a container is unrealized. The container must have already have been removed from the virtualizing panel's list of realized containers before this method is called. This method must not be called if NeedsContainer(Object, Int32, Object) returned false for the item.

See Also