Skip to main content

OnItemsChanged Method

Called when the Items collection of the owner ItemsControl changes.

Definition

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

protected virtual void OnItemsChanged(
IReadOnlyList<Object?> items,
NotifyCollectionChangedEventArgs e
)

Parameters

  IReadOnlyList(Object)
The items.
  NotifyCollectionChangedEventArgs
The event args.

Remarks

This method is called a INotifyCollectionChanged event is raised by the items, or when the Items property is assigned a new collection, in which case the NotifyCollectionChangedAction will be Reset.

See Also

Reference

VirtualizingPanel Class
Avalonia.Controls Namespace