C# Class WinRTXamlToolkit.Controls.DataVisualization.Charting.DataPointSingleSeriesWithAxes

A dynamic series with axes and only one legend item and style for all data points.
Inheritance: DataPointSeriesWithAxes, IRequireGlobalSeriesIndex
ファイルを表示 Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
GlobalSeriesIndexProperty Windows.UI.Xaml.DependencyProperty

Protected Properties

Property Type Description
ActualDataPointStyleProperty Windows.UI.Xaml.DependencyProperty
ActualLegendItemStyleProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Property Type Description
CreateLegendItemDataPoint void
DispensedResourcesChanging void
GetResourceDictionaryEnumeratorFromHost IEnumerator
OnGlobalSeriesIndexPropertyChanged void
OnGlobalSeriesIndexPropertyChanged void
SeriesHostResourceDictionariesChanged void

Public Methods

Method Description
GlobalSeriesIndexChanged ( int globalIndex ) : void

This method updates the global series index property.

Protected Methods

Method Description
DataPointSingleSeriesWithAxes ( ) : System

Initializes a new instance of the DataPointSingleSeriesWithAxes class.

OnDataPointStylePropertyChanged ( Style oldValue, Style newValue ) : void

DataPointStyleProperty property changed handler.

OnDataPointsChanged ( IList newDataPoints, IList oldDataPoints ) : void

Called after data points have been loaded from the items source.

OnLegendItemStylePropertyChanged ( Style oldValue, Style newValue ) : void

Called when the value of the LegendItemStyle property changes.

OnPlotAreaChanged ( Panel oldValue, Panel newValue ) : void

Insert grid containing data point used for legend item into the plot area.

OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void

When the series host property is set retrieves a style to use for all the data points.

OnTitleChanged ( object oldValue, object newValue ) : void

Called when the Title property changes.

PrepareDataPoint ( DataPoint dataPoint, object dataContext ) : void

Sets the style of the data point to the single style used for all data points.

Private Methods

Method Description
CreateLegendItemDataPoint ( ) : void

Creates the LegendItem Control if conditions are right.

DispensedResourcesChanging ( ) : void

Processes the change of the DispensedResources property.

GetResourceDictionaryEnumeratorFromHost ( ) : IEnumerator
OnGlobalSeriesIndexPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

GlobalSeriesIndexProperty property changed handler.

OnGlobalSeriesIndexPropertyChanged ( int oldValue, int newValue ) : void
SeriesHostResourceDictionariesChanged ( object sender, EventArgs e ) : void

Handles the SeriesHost's ResourceDictionariesChanged event.

Method Details

DataPointSingleSeriesWithAxes() protected method

Initializes a new instance of the DataPointSingleSeriesWithAxes class.
protected DataPointSingleSeriesWithAxes ( ) : System
return System

GlobalSeriesIndexChanged() public method

This method updates the global series index property.
public GlobalSeriesIndexChanged ( int globalIndex ) : void
globalIndex int The global index of the series.
return void

OnDataPointStylePropertyChanged() protected method

DataPointStyleProperty property changed handler.
protected OnDataPointStylePropertyChanged ( Style oldValue, Style newValue ) : void
oldValue Windows.UI.Xaml.Style Old value.
newValue Windows.UI.Xaml.Style New value.
return void

OnDataPointsChanged() protected method

Called after data points have been loaded from the items source.
protected OnDataPointsChanged ( IList newDataPoints, IList oldDataPoints ) : void
newDataPoints IList New active data points.
oldDataPoints IList Old inactive data points.
return void

OnLegendItemStylePropertyChanged() protected method

Called when the value of the LegendItemStyle property changes.
protected OnLegendItemStylePropertyChanged ( Style oldValue, Style newValue ) : void
oldValue Windows.UI.Xaml.Style Old value.
newValue Windows.UI.Xaml.Style New value.
return void

OnPlotAreaChanged() protected method

Insert grid containing data point used for legend item into the plot area.
protected OnPlotAreaChanged ( Panel oldValue, Panel newValue ) : void
oldValue Windows.UI.Xaml.Controls.Panel The old plot area.
newValue Windows.UI.Xaml.Controls.Panel The new plot area.
return void

OnSeriesHostPropertyChanged() protected method

When the series host property is set retrieves a style to use for all the data points.
protected OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void
oldValue ISeriesHost The old series host value.
newValue ISeriesHost The new series host value.
return void

OnTitleChanged() protected method

Called when the Title property changes.
protected OnTitleChanged ( object oldValue, object newValue ) : void
oldValue object Old value of the Title property.
newValue object New value of the Title property.
return void

PrepareDataPoint() protected method

Sets the style of the data point to the single style used for all data points.
protected PrepareDataPoint ( DataPoint dataPoint, object dataContext ) : void
dataPoint DataPoint The data point to apply the style to. ///
dataContext object The object associated with the data point. ///
return void

Property Details

ActualDataPointStyleProperty protected_oe static_oe property

Identifies the ActualDataPointStyle dependency property.
protected static DependencyProperty,Windows.UI.Xaml ActualDataPointStyleProperty
return Windows.UI.Xaml.DependencyProperty

ActualLegendItemStyleProperty protected_oe static_oe property

Identifies the ActualLegendItemStyle dependency property.
protected static DependencyProperty,Windows.UI.Xaml ActualLegendItemStyleProperty
return Windows.UI.Xaml.DependencyProperty

GlobalSeriesIndexProperty public_oe static_oe property

Identifies the GlobalSeriesIndex dependency property.
public static DependencyProperty,Windows.UI.Xaml GlobalSeriesIndexProperty
return Windows.UI.Xaml.DependencyProperty