New to Telerik UI for WinFormsStart a free 30-day trial

Base View Model for chart user controls.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Charts

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class ChartControlViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseChartControlViewModel

Derived Classes: CartesianChartControlViewModelPieChartControlViewModelScatterChartControlViewModel

Implements: IDisposableINotifyPropertyChanged

Inherited Members ViewModelBase.VerifyPropertyName(string)ViewModelBase.Dispose()ViewModelBase.OnPropertyChanged(string)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

Initializes a new instance of the ChartControlViewModel.

C#
public ChartControlViewModel(string title, ChartPalette palette)
Parameters:titlestring

The title of the chart.

paletteChartPalette

The chart palette

Properties

Gets or sets the background of the chart usercontrol.

C#
public Brush Background { get; set; }

Gets or sets the border brush of the chart usercontrol.

C#
public Brush BorderBrush { get; set; }

Gets or sets the border thickness of the chart usercontrol.

C#
public Thickness BorderThickness { get; set; }

Gets or sets the ChartView palette.

C#
public ChartPalette ChartPalette { get; set; }

Gets or sets the chart title.

C#
public string ChartTitle { get; set; }

Gets or sets the legend position.

C#
public LegendPosition LegendPosition { get; set; }

Gets or sets the legend visibility.

C#
public Visibility LegendVisibility { get; set; }

Gets or sets the series view models.

C#
public ObservableCollection<SeriesViewModel> SeriesModels { get; set; }

Gets or sets the title visibility.

C#
public Visibility TitleVisibility { get; set; }