ItemCollectionClear Method

Clears the collection and releases the references on all items currently in the collection.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void Clear()

Exceptions

InvalidOperationException The collection is in ItemsSource mode.

See Also