Skip to content

LiveChartViewModel(Grid) constructor

Defined in

Type: LiveChartViewModel Namespace: CrissCross.WPF.Plot Assembly: CrissCross.WPF.Plot.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

public LiveChartViewModel(Grid grid)

View source

Summary: Initializes a new instance of the LiveChartViewModel class and sets up the chart view within the specified grid. container.

Parameters

NameTypeDescription
gridGridThe Grid control that will host the chart view. If null, the chart view will not be added to a visual container.

Remarks

This constructor configures chart axes, UI collections, and command bindings required for interactive chart functionality. The chart view is added to the provided grid and initialized with default settings. If the grid is not null, its child elements are cleared before adding the chart view.