ChartObserver

An IObserver collection.

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

Inheritance

Object Dictionary<String, Map> ChartObserver

Members

Properties

IsDisposed Boolean
Gets a value indicating whether the observer is disposed.

Methods

Collection 2 parameters

Observes a collection of items, and tracks changes in the collection and in each item.

String key The property name.

Func<Object> propertyGetter

Property 2 parameters

Observes a property change in an item, and updates the chart when the property changes.

String key The property name.

Func<Object> propertyGetter A function that gets the value of the property.

AddObserver 3 parameters

Adds an observer to the collection with a specified key and property getter.

IObserver observer The observer instance to add.

String key The property name.

Func<Object> propertyGetter A function that gets the value of the property.

Initialize No parameters

Initializes the observers with the current values of the properties they observe.

Dispose No parameters

Disposes the contained observers.

Constructors

ChartObserver 4 parameters

Initializes a new instance of the ChartObserver class.

Func<ChartObserver, ChartObserver> builder The builder action that configures the observer.

Action updateChart A delegate that updates the chart.

Action<Object> addToUI A delegate that adds an element to the UI.

Action<Object> removeFromUI A delegate that removes an element from the UI.