C# Класс WinRTXamlToolkit.Controls.DataVisualization.Charting.DataPointSeries

Represents a control that contains a dynamic data series.
Наследование: Series
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AnimationSequenceProperty Windows.UI.Xaml.DependencyProperty
DataPointStyleProperty Windows.UI.Xaml.DependencyProperty
IsSelectionEnabledProperty Windows.UI.Xaml.DependencyProperty
ItemsSourceProperty Windows.UI.Xaml.DependencyProperty
LegendItemStyleProperty Windows.UI.Xaml.DependencyProperty
SelectedItemProperty Windows.UI.Xaml.DependencyProperty
TransitionDurationProperty Windows.UI.Xaml.DependencyProperty
TransitionEasingFunctionProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Свойство Тип Описание
AttachEventHandlersToDataPoints void
CreateAndPrepareDataPoint DataPoint
DetachEventHandlersFromDataPoints void
GetResourceDictionaryWithTargetType IEnumerator
InvokeOnLayoutUpdated void
ItemsSourceCollectionChanged void
OnDataPointActualDependentValueChanged void
OnDataPointActualIndependentValueChanged void
OnDataPointDependentValueChanged void
OnDataPointIndependentValueChanged void
OnDataPointIsSelectedChanged void
OnDataPointStateChanged void
OnDataPointStylePropertyChanged void
OnIsSelectionEnabledPropertyChanged void
OnItemsSourceChanged void
OnLegendItemStylePropertyChanged void
OnSelectedItemPropertyChanged void
OnSizeChanged void
Select void
StaggeredStateChange void
Unselect void

Открытые методы

Метод Описание
Refresh ( ) : void

Refreshes data from data source and renders the series.

Защищенные методы

Метод Описание
AddDataPoint ( DataPoint dataPoint ) : void

Adds a data point to the plot area.

AddObject ( object dataContext ) : DataPoint

Adds an object to the series host by creating a corresponding data point for it.

AttachEventHandlersToDataPoint ( DataPoint dataPoint ) : void

Attaches event handlers to a data point.

CreateDataPoint ( ) : DataPoint

Returns a Control suitable for the Series.

CreateLegendItem ( DataPointSeries owner ) : LegendItem

Creates a legend item.

DataPointSeries ( ) : Controls.DataVisualization.Toolkit

Initializes a new instance of the DataPointSeries class.

DetachEventHandlersFromDataPoint ( DataPoint dataPoint ) : void

Detaches event handlers from a data point.

GetDataPoint ( object dataContext ) : DataPoint

Retrieves the data point corresponding to the object passed as the parameter.

GetInsertionIndex ( DataPoint dataPoint ) : int

Returns the index at which to insert data point in the plot area child collection.

LoadDataPoints ( IEnumerable newItems, IEnumerable oldItems ) : void

Updates data points collection with items retrieved from items source and removes the old items.

OnAfterUpdateDataPoints ( ) : void

This method that executes after data points are updated.

OnApplyTemplate ( ) : void

Attaches handler plot area after loading it from XAML.

OnBeforeUpdateDataPoints ( ) : void

This method that executes before data points are updated.

OnDataPointActualDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void

Handles data point actual dependent value property change.

OnDataPointActualIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void

Handles data point actual independent value property change.

OnDataPointDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void

Handles data point dependent value property change.

OnDataPointIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void

Handles data point independent value property change.

OnDataPointStateChanged ( DataPoint dataPoint, DataPointState oldValue, DataPointState newValue ) : void

Handles data point state property change.

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.

OnIsSelectionEnabledPropertyChanged ( bool oldValue, bool newValue ) : void

IsSelectionEnabledProperty property changed handler.

OnItemsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void

Called when the ItemsSource property changes.

OnItemsSourceCollectionChanged ( IEnumerable collection, NotifyCollectionChangedEventArgs e ) : void

Method called when the ItemsSource collection changes.

OnLegendItemStylePropertyChanged ( Style oldValue, Style newValue ) : void

Called when the value of the LegendItemStyle property changes.

OnPlotAreaChanged ( Panel oldValue, Panel newValue ) : void

Removes items from the existing plot area and adds items to new plot area.

OnSelectedItemPropertyChanged ( object oldValue, object newValue ) : void

Called when the value of the SelectedItem property changes.

OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void

Handles changes to the SeriesHost property.

PrepareDataPoint ( DataPoint dataPoint, object dataContext ) : void

Prepares a data point by extracting binding it to a data context object.

RemoveDataPoint ( DataPoint dataPoint ) : void

Removes a data point from the plot area.

RemoveObject ( object dataContext ) : DataPoint

Removes an object from the series host by removing its corresponding data point.

ShouldCreateDataPoint ( object dataContext ) : bool

Returns whether a data point should be created for the data context.

UpdateDataPoint ( DataPoint dataPoint ) : void

Updates the visual representation of a single data point in the plot area.

UpdateDataPoints ( IEnumerable dataPoints ) : void

Updates the visual representation of all data points in the plot area.

Приватные методы

Метод Описание
AttachEventHandlersToDataPoints ( IEnumerable dataPoints ) : void

Attaches event handlers to the data points.

CreateAndPrepareDataPoint ( object dataContext ) : DataPoint

Creates and prepares a data point.

DetachEventHandlersFromDataPoints ( IEnumerable dataPoints ) : void

Detaches event handlers from the data points.

GetResourceDictionaryWithTargetType ( IResourceDictionaryDispenser dispenser, Type targetType, bool takeAncestors ) : IEnumerator

Returns a ResourceDictionaryEnumerator that returns ResourceDictionaries with a DataPointStyle having the specified TargetType or with a TargetType that is an ancestor of the specified type.

InvokeOnLayoutUpdated ( System.Action action ) : void

Invokes an action when the plot area's layout is updated.

ItemsSourceCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method that handles the ObservableCollection.CollectionChanged event for the ItemsSource property.

OnDataPointActualDependentValueChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Handles data point actual dependent value property changes.

OnDataPointActualIndependentValueChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Handles data point actual independent value property changes.

OnDataPointDependentValueChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Handles data point dependent value property changes.

OnDataPointIndependentValueChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Handles data point independent value property changes.

OnDataPointIsSelectedChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Method executed when a data point is either selected or unselected.

OnDataPointStateChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Handles data point state property change.

OnDataPointStylePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

DataPointStyleProperty property changed handler.

OnIsSelectionEnabledPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IsSelectionEnabledProperty property changed handler.

OnItemsSourceChanged ( DependencyObject o, DependencyPropertyChangedEventArgs e ) : void

ItemsSourceProperty property changed callback.

OnLegendItemStylePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

LegendItemStyleProperty property changed handler.

OnSelectedItemPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Called when the value of the SelectedItem property changes.

OnSizeChanged ( object sender, SizeChangedEventArgs e ) : void

Updates the visual appearance of all the data points when the size changes.

Select ( DataPoint dataPoint ) : void

Selects a data point.

StaggeredStateChange ( IEnumerable dataPoints, int dataPointCount, DataPointState newState ) : void

Reveals data points using a storyboard.

Unselect ( DataPoint dataPoint ) : void

Unselects a data point.

Описание методов

AddDataPoint() защищенный Метод

Adds a data point to the plot area.
protected AddDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point to add to the plot area. ///
Результат void

AddObject() защищенный Метод

Adds an object to the series host by creating a corresponding data point for it.
protected AddObject ( object dataContext ) : DataPoint
dataContext object The object to add to the series host.
Результат DataPoint

AttachEventHandlersToDataPoint() защищенный Метод

Attaches event handlers to a data point.
protected AttachEventHandlersToDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point.
Результат void

CreateDataPoint() защищенный абстрактный Метод

Returns a Control suitable for the Series.
protected abstract CreateDataPoint ( ) : DataPoint
Результат DataPoint

CreateLegendItem() защищенный Метод

Creates a legend item.
protected CreateLegendItem ( DataPointSeries owner ) : LegendItem
owner DataPointSeries The owner of the new LegendItem.
Результат LegendItem

DataPointSeries() защищенный Метод

Initializes a new instance of the DataPointSeries class.
protected DataPointSeries ( ) : Controls.DataVisualization.Toolkit
Результат Controls.DataVisualization.Toolkit

DetachEventHandlersFromDataPoint() защищенный Метод

Detaches event handlers from a data point.
protected DetachEventHandlersFromDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point.
Результат void

GetDataPoint() защищенный Метод

Retrieves the data point corresponding to the object passed as the parameter.
protected GetDataPoint ( object dataContext ) : DataPoint
dataContext object The data context used for the point. ///
Результат DataPoint

GetInsertionIndex() защищенный Метод

Returns the index at which to insert data point in the plot area child collection.
protected GetInsertionIndex ( DataPoint dataPoint ) : int
dataPoint DataPoint The data point to retrieve the insertion /// index for.
Результат int

LoadDataPoints() защищенный Метод

Updates data points collection with items retrieved from items source and removes the old items.
protected LoadDataPoints ( IEnumerable newItems, IEnumerable oldItems ) : void
newItems IEnumerable The items to load.
oldItems IEnumerable The items to remove.
Результат void

OnAfterUpdateDataPoints() защищенный Метод

This method that executes after data points are updated.
protected OnAfterUpdateDataPoints ( ) : void
Результат void

OnApplyTemplate() защищенный Метод

Attaches handler plot area after loading it from XAML.
protected OnApplyTemplate ( ) : void
Результат void

OnBeforeUpdateDataPoints() защищенный Метод

This method that executes before data points are updated.
protected OnBeforeUpdateDataPoints ( ) : void
Результат void

OnDataPointActualDependentValueChanged() защищенный Метод

Handles data point actual dependent value property change.
protected OnDataPointActualDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void
dataPoint DataPoint The data point.
oldValue IComparable The old value.
newValue IComparable The new value.
Результат void

OnDataPointActualIndependentValueChanged() защищенный Метод

Handles data point actual independent value property change.
protected OnDataPointActualIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void
dataPoint DataPoint The data point.
oldValue object The old value.
newValue object The new value.
Результат void

OnDataPointDependentValueChanged() защищенный Метод

Handles data point dependent value property change.
protected OnDataPointDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void
dataPoint DataPoint The data point.
oldValue IComparable The old value.
newValue IComparable The new value.
Результат void

OnDataPointIndependentValueChanged() защищенный Метод

Handles data point independent value property change.
protected OnDataPointIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void
dataPoint DataPoint The data point.
oldValue object The old value.
newValue object The new value.
Результат void

OnDataPointStateChanged() защищенный Метод

Handles data point state property change.
protected OnDataPointStateChanged ( DataPoint dataPoint, DataPointState oldValue, DataPointState newValue ) : void
dataPoint DataPoint The data point.
oldValue DataPointState The old value.
newValue DataPointState The new value.
Результат void

OnDataPointStylePropertyChanged() защищенный Метод

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.
Результат void

OnDataPointsChanged() защищенный Метод

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.
Результат void

OnIsSelectionEnabledPropertyChanged() защищенный Метод

IsSelectionEnabledProperty property changed handler.
protected OnIsSelectionEnabledPropertyChanged ( bool oldValue, bool newValue ) : void
oldValue bool Old value.
newValue bool New value.
Результат void

OnItemsSourceChanged() защищенный Метод

Called when the ItemsSource property changes.
protected OnItemsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void
oldValue IEnumerable Old value of the ItemsSource property.
newValue IEnumerable New value of the ItemsSource property.
Результат void

OnItemsSourceCollectionChanged() защищенный Метод

Method called when the ItemsSource collection changes.
protected OnItemsSourceCollectionChanged ( IEnumerable collection, NotifyCollectionChangedEventArgs e ) : void
collection IEnumerable New value of the collection.
e System.Collections.Specialized.NotifyCollectionChangedEventArgs Information about the change.
Результат void

OnLegendItemStylePropertyChanged() защищенный Метод

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.
Результат void

OnPlotAreaChanged() защищенный Метод

Removes items from the existing plot area and adds items to new plot area.
protected OnPlotAreaChanged ( Panel oldValue, Panel newValue ) : void
oldValue Windows.UI.Xaml.Controls.Panel The previous plot area.
newValue Windows.UI.Xaml.Controls.Panel The new plot area.
Результат void

OnSelectedItemPropertyChanged() защищенный Метод

Called when the value of the SelectedItem property changes.
protected OnSelectedItemPropertyChanged ( object oldValue, object newValue ) : void
oldValue object The old selected index.
newValue object The new value.
Результат void

OnSeriesHostPropertyChanged() защищенный Метод

Handles changes to the SeriesHost property.
protected OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void
oldValue ISeriesHost Old value.
newValue ISeriesHost New value.
Результат void

PrepareDataPoint() защищенный Метод

Prepares a data point by extracting binding it to a data context object.
protected PrepareDataPoint ( DataPoint dataPoint, object dataContext ) : void
dataPoint DataPoint A data point.
dataContext object A data context object.
Результат void

Refresh() публичный Метод

Refreshes data from data source and renders the series.
public Refresh ( ) : void
Результат void

RemoveDataPoint() защищенный Метод

Removes a data point from the plot area.
protected RemoveDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point to remove.
Результат void

RemoveObject() защищенный Метод

Removes an object from the series host by removing its corresponding data point.
protected RemoveObject ( object dataContext ) : DataPoint
dataContext object The object to remove from the series data /// source.
Результат DataPoint

ShouldCreateDataPoint() защищенный Метод

Returns whether a data point should be created for the data context.
protected ShouldCreateDataPoint ( object dataContext ) : bool
dataContext object The data context that will be used for the /// data point.
Результат bool

UpdateDataPoint() защищенный абстрактный Метод

Updates the visual representation of a single data point in the plot area.
protected abstract UpdateDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point to update.
Результат void

UpdateDataPoints() защищенный Метод

Updates the visual representation of all data points in the plot area.
protected UpdateDataPoints ( IEnumerable dataPoints ) : void
dataPoints IEnumerable A sequence of data points to update. ///
Результат void

Описание свойств

AnimationSequenceProperty публичное статическое свойство

Identifies the AnimationSequence dependency property.
public static DependencyProperty,Windows.UI.Xaml AnimationSequenceProperty
Результат Windows.UI.Xaml.DependencyProperty

DataPointStyleProperty публичное статическое свойство

Identifies the DataPointStyle dependency property.
public static DependencyProperty,Windows.UI.Xaml DataPointStyleProperty
Результат Windows.UI.Xaml.DependencyProperty

IsSelectionEnabledProperty публичное статическое свойство

Identifies the IsSelectionEnabled dependency property.
public static DependencyProperty,Windows.UI.Xaml IsSelectionEnabledProperty
Результат Windows.UI.Xaml.DependencyProperty

ItemsSourceProperty публичное статическое свойство

Identifies the ItemsSource dependency property.
public static DependencyProperty,Windows.UI.Xaml ItemsSourceProperty
Результат Windows.UI.Xaml.DependencyProperty

LegendItemStyleProperty публичное статическое свойство

Identifies the LegendItemStyle dependency property.
public static DependencyProperty,Windows.UI.Xaml LegendItemStyleProperty
Результат Windows.UI.Xaml.DependencyProperty

SelectedItemProperty публичное статическое свойство

Identifies the SelectedItem dependency property.
public static DependencyProperty,Windows.UI.Xaml SelectedItemProperty
Результат Windows.UI.Xaml.DependencyProperty

TransitionDurationProperty публичное статическое свойство

Identifies the TransitionDuration dependency property.
public static DependencyProperty,Windows.UI.Xaml TransitionDurationProperty
Результат Windows.UI.Xaml.DependencyProperty

TransitionEasingFunctionProperty публичное статическое свойство

Identifies the TransitionEasingFunction dependency property.
public static DependencyProperty,Windows.UI.Xaml TransitionEasingFunctionProperty
Результат Windows.UI.Xaml.DependencyProperty