ChartObserver
Class

Assembly LiveChartsCore
Namespace LiveChartsCore.Kernel.Observers

Summary:
An IObserver collection.

Inheritance:
Object =>
Dictionary<String, Map> =>
ChartObserver

Constructors

// 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.
)

Properties

Gets a value indicating whether the observer is disposed.
Type: Boolean

Methods

// Observes a collection of items, and tracks changes in the collection and in each item.
String key, // The property name.
Func<Object> propertyGetter//
)
// 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.
)
// 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.
)
// Initializes the observers with the current values of the properties they observe.
// Disposes the contained observers.