OnItemsChanged Method
Called when the Items collection of the owner ItemsControl changes.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
protected virtual void OnItemsChanged(
IReadOnlyList<Object?> items,
NotifyCollectionChangedEventArgs e
)
Protected Overridable Sub OnItemsChanged (
items As IReadOnlyList(Of Object),
e As NotifyCollectionChangedEventArgs
)
abstract OnItemsChanged :
items : IReadOnlyList<Object> *
e : NotifyCollectionChangedEventArgs -> unit
override OnItemsChanged :
items : IReadOnlyList<Object> *
e : NotifyCollectionChangedEventArgs -> unit
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.