CollectionDeepObserver
Class
Assembly LiveChartsCore
Namespace LiveChartsCore.Kernel.Observers
Summary:
A Class that tracks both, CollectionChanged event and
the PropertyChanged event of each element in the collection.
Object
=>
CollectionDeepObserver
Constructors
// A Class that tracks both, CollectionChanged event and
the PropertyChanged event of each element in the collection.
| 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 acction is called each time an item is removed in the collection. This action is also called for each item when the collection is disposed. |
)
Methods
// Initializes the observer, if there is already an instance being observed, it is disposed.
| Object instance | // The instance to observe. |
)
// Disposes the observer.