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

Represents an abstract definition of a ChartSeries instance. Used together with a ChartSeriesProvider instance to provide dynamic chart series generation, depending on the data specified. The descriptors form a neat hierarchy based on the type of data visualized - e.g. Categorical, Scatter, Financial, etc. This is the base class which encapsulates all the common functionality for all concrete descriptors.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public class ChartSeriesDescriptor : DependencyObject

Inheritance: objectChartSeriesDescriptor

Derived Classes: CategoricalSeriesDescriptorBasePolarSeriesDescriptorBaseScatterSeriesDescriptor

Constructors

C#
public ChartSeriesDescriptor()

Fields

Identifies the ChartDataSourceStyle dependency property.

C#
public static readonly DependencyProperty ChartDataSourceStyleProperty

CollectionIndexProperty

DependencyProperty

Identifies the CollectionIndex dependency property.

C#
public static readonly DependencyProperty CollectionIndexProperty

ItemsSourcePathProperty

DependencyProperty

Identifies the ItemsSourcePath dependency property.

C#
public static readonly DependencyProperty ItemsSourcePathProperty

StyleProperty

DependencyProperty

Identifies the Style dependency property.

C#
public static readonly DependencyProperty StyleProperty

TypeConverterProperty

DependencyProperty

Identifies the TypeConverter dependency property.

C#
public static readonly DependencyProperty TypeConverterProperty

TypePathProperty

DependencyProperty

Identifies the TypePath dependency property.

C#
public static readonly DependencyProperty TypePathProperty

Properties

Gets or sets the ChartDataSourceStyle.

C#
public Style ChartDataSourceStyle { get; set; }

Gets or sets the index within the Source collection of data (view models) for which the current descriptor should be used. This property is useful when for example a BarSeries needs to be generated for the first data entry and LineSeries for the rest of the entries.

C#
public int CollectionIndex { get; set; }

Gets the default type of series that are to be created if no TypePath and no Style properties are specified.

C#
public virtual Type DefaultType { get; }

Gets or sets the name of the property that points to the items source that will feed the generated series.

C#
public string ItemsSourcePath { get; set; }

Style

Style

Gets or sets the Style that describes the appearance of the series that are to be created. If no TypePath is specified, the TargetType property of this style object is used to generate the desired series.

C#
public Style Style { get; set; }

TypeConverter

IValueConverter

Gets or sets a converter that can be used to provide the exact type of the series that should be created.

C#
public IValueConverter TypeConverter { get; set; }

Gets or sets the name of the property that points to the series type that needs to be created.

C#
public string TypePath { get; set; }

Methods

Provides the default implementation for the routine.

C#
protected ChartSeries CreateDefaultInstance(object context)
Parameters:contextobjectReturns:

ChartSeries

Creates an instance of the ChartSeries type, defined by this descriptor.

C#
public ChartSeries CreateInstance(object context)
Parameters:contextobject

The context (this is the raw data collection or the data view model) for which a ChartSeries needs to be created.

Returns:

ChartSeries

Core entry point for creating the ChartSeries type defined by this descriptor. Allows inheritors to provide custom implementation.

C#
protected virtual ChartSeries CreateInstanceCore(object context)
Parameters:contextobject

The context (this is the raw data collection or the data view model) for which a ChartSeries needs to be created.

Returns:

ChartSeries