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

Наследование: DataPointSeries, IResourceDictionaryDispenser, IRequireGlobalSeriesIndex
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
PaletteProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Свойство Тип Описание
ConvertRatioOfRotationToPoint Point
OnPalettePropertyChanged void
OnPalettePropertyChanged void
OnPieDataPointActualOffsetRatioChanged void
OnPieDataPointActualRatioChanged void
OnPieDataPointOffsetRatioChanged void
OnPieDataPointRatioChanged void
SeriesHostResourceDictionariesChanged void
UpdateLegendItemIndexes void
UpdatePieDataPointGeometry void
UpdateRatios void

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

Метод Описание
GetResourceDictionariesWhere ( bool>.Func predicate ) : IEnumerator

Returns a rotating enumerator of ResourceDictionary objects that coordinates with the dispenser object to ensure that no two enumerators are on the same item. If the dispenser is reset or its collection is changed then the enumerators are also reset.

GlobalSeriesIndexChanged ( int globalIndex ) : void

This method updates the global series index property.

PieSeries ( ) : System

Initializes a new instance of the PieSeries class.

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

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

Creates a legend item for each data point.

AttachEventHandlersToDataPoint ( DataPoint dataPoint ) : void

Attach event handlers to a data point.

CreateDataPoint ( ) : DataPoint

Creates a data point.

CreatePieLegendItem ( DataPoint dataPoint, int index ) : LegendItem

Creates a legend item from a data point.

DetachEventHandlersFromDataPoint ( DataPoint dataPoint ) : void

Detaches event handlers from a data point.

OnBeforeUpdateDataPoints ( ) : void

Updates all ratios before data points are updated.

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

Updates the data point when the dependent value is changed.

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

Updates the data point when the independent value is changed.

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.

OnResourceDictionariesChanged ( EventArgs e ) : void

Invokes the ResourceDictionariesChanged event.

OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void

Called when the value of the SeriesHost property changes.

RemoveDataPoint ( DataPoint dataPoint ) : void

Removes data point's legend item when the data point is removed.

UpdateDataPoint ( DataPoint dataPoint ) : void

Updates a data point.

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

Метод Описание
ConvertRatioOfRotationToPoint ( double ratio, double radiusX, double radiusY ) : Point

Accepts a ratio of a full rotation, the x and y length and returns the 2D point using trigonometric functions.

OnPalettePropertyChanged ( Collection newValue ) : void

PaletteProperty property changed handler.

OnPalettePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

PaletteProperty property changed handler.

OnPieDataPointActualOffsetRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's actual offset ratio is changed.

OnPieDataPointActualRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's actual ratio is changed.

OnPieDataPointOffsetRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's offset ratio is changed.

OnPieDataPointRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's ratio is changed.

SeriesHostResourceDictionariesChanged ( object sender, EventArgs e ) : void

Handles the SeriesHost's ResourceDictionariesChanged event.

UpdateLegendItemIndexes ( ) : void

Updates the indexes of all legend items when a change is made to the collection.

UpdatePieDataPointGeometry ( PieDataPoint pieDataPoint, double plotAreaWidth, double plotAreaHeight ) : void

Updates the PieDataPoint's Geometry property.

UpdateRatios ( ) : void

Updates the ratios of each data point.

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

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

Creates a legend item for each data point.
protected AddDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point added.
Результат void

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

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

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

Creates a data point.
protected CreateDataPoint ( ) : DataPoint
Результат DataPoint

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

Creates a legend item from a data point.
protected CreatePieLegendItem ( DataPoint dataPoint, int index ) : LegendItem
dataPoint DataPoint The data point to use to create the legend item.
index int The 1-based index of the Control.
Результат LegendItem

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

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

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

Returns a rotating enumerator of ResourceDictionary objects that coordinates with the dispenser object to ensure that no two enumerators are on the same item. If the dispenser is reset or its collection is changed then the enumerators are also reset.
public GetResourceDictionariesWhere ( bool>.Func predicate ) : IEnumerator
predicate bool>.Func A predicate that returns a value indicating /// whether to return an item.
Результат IEnumerator

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

This method updates the global series index property.
public GlobalSeriesIndexChanged ( int globalIndex ) : void
globalIndex int The global index of the series.
Результат void

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

Updates all ratios before data points are updated.
protected OnBeforeUpdateDataPoints ( ) : void
Результат void

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

Updates the data point when the dependent value is changed.
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() защищенный Метод

Updates the data point when the independent value is changed.
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

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

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

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

Invokes the ResourceDictionariesChanged event.
protected OnResourceDictionariesChanged ( EventArgs e ) : void
e System.EventArgs Event arguments.
Результат void

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

Called when the value of the SeriesHost property changes.
protected OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void
oldValue ISeriesHost The value to be replaced.
newValue ISeriesHost The new series host value.
Результат void

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

Initializes a new instance of the PieSeries class.
public PieSeries ( ) : System
Результат System

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

Removes data point's legend item when the data point is removed.
protected RemoveDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point to remove.
Результат void

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

Updates a data point.
protected UpdateDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point to update.
Результат void

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

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

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