CollectionDeepObserver

A Class that tracks the INotifyCollectionChanged.CollectionChanged event of a collection and, when item tracking applies (it can be disabled for element types that can never be tracked — see CollectionDeepObserver.MayContainTrackableItems — and never applies to value-type items, whose subscription would attach to a temporary box), the INotifyPropertyChanged.PropertyChanged event of each element in the collection.

Class · Namespace LiveChartsCore.Kernel.Observers · Assembly LiveChartsCore · View source

Inheritance

Object CollectionDeepObserver

Implements

Members

Methods

Initialize 1 parameter

Initializes the observer, if there is already an instance being observed, it is disposed.

Object instance The instance to observe.

Dispose No parameters

Disposes the observer.

Constructors

CollectionDeepObserver 3 parameters

Initializes a new instance of the CollectionDeepObserver class.

Action onChange An action that is called when the collection items or a property in an item in the collection change.

Action<Object> onItemAdded if specified, this action is called for each new item in the collection. This action is also called for each item when the collection is initialized.

Action<Object> onItemRemoved if specified, this action is called each time an item is removed in the collection. This action is also called for each item when the collection is disposed.

CollectionDeepObserver 4 parameters

Initializes a new instance of the CollectionDeepObserver class.

Action onChange An action that is called when the collection items or a property in an item in the collection change.

Action<Object> onItemAdded if specified, this action is called for each new item in the collection. This action is also called for each item when the collection is initialized.

Action<Object> onItemRemoved if specified, this action is called each time an item is removed in the collection. This action is also called for each item when the collection is disposed.

Boolean trackItemProperties *summary not found*