Skip to main content

ClearItemContainer Method

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

Definition​

Namespace: Avalonia.Controls.Generators
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public void ClearItemContainer(
Control container
)

Parameters​

  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​

Reference​

ItemContainerGenerator Class
Avalonia.Controls.Generators Namespace