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)
Summary: Initializes a new instance of the LiveChartViewModel class and sets up the chart view within the specified grid. container.
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid | The 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.