Show / Hide Table of Contents

Class PieSeries

Represents a control that contains a data series to be rendered in pie format.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
Series
DataPointSeries
PieSeries
Implements
ISeries
IRequireSeriesHost
IResourceDictionaryDispenser
IRequireGlobalSeriesIndex
Inherited Members
DataPointSeries.PlotAreaName
DataPointSeries.DataPointStyleName
DataPointSeries.LegendItemStyleName
DataPointSeries.ActualLegendItemStyleName
DataPointSeries.DependentValueBinding
DataPointSeries.DependentValuePath
DataPointSeries.IndependentValueBinding
DataPointSeries.IndependentValuePath
DataPointSeries.ItemsSource
DataPointSeries.ItemsSourceProperty
DataPointSeries.OnItemsSourceChanged(IEnumerable, IEnumerable)
DataPointSeries.AnimationSequence
DataPointSeries.ActiveDataPoints
DataPointSeries.ActiveDataPointCount
DataPointSeries.TransitionEasingFunction
DataPointSeries.TransitionEasingFunctionProperty
DataPointSeries.IsSelectionEnabled
DataPointSeries.IsSelectionEnabledProperty
DataPointSeries.OnIsSelectionEnabledPropertyChanged(Boolean, Boolean)
DataPointSeries.AnimationSequenceProperty
DataPointSeries.PlotAreaSize
DataPointSeries.SelectionChanged
DataPointSeries.SelectedItem
DataPointSeries.SelectedItemProperty
DataPointSeries.OnSelectedItemPropertyChanged(Object, Object)
DataPointSeries.DataPointStyle
DataPointSeries.DataPointStyleProperty
DataPointSeries.LegendItemStyle
DataPointSeries.LegendItemStyleProperty
DataPointSeries.TransitionDuration
DataPointSeries.TransitionDurationProperty
DataPointSeries.AddObject(Object)
DataPointSeries.ShouldCreateDataPoint(Object)
DataPointSeries.GetInsertionIndex(DataPoint)
DataPointSeries.GetDataPoint(Object)
DataPointSeries.CreateLegendItem(DataPointSeries)
DataPointSeries.LoadDataPoints(IEnumerable, IEnumerable)
DataPointSeries.OnApplyTemplate()
DataPointSeries.OnItemsSourceCollectionChanged(IEnumerable, NotifyCollectionChangedEventArgs)
DataPointSeries.OnPlotAreaChanged(Panel, Panel)
DataPointSeries.Refresh()
DataPointSeries.RemoveObject(Object)
DataPointSeries.UpdatingDataPoints
DataPointSeries.UpdateDataPoints(IEnumerable<DataPoint>)
DataPointSeries.OnAfterUpdateDataPoints()
DataPointSeries.PrepareDataPoint(DataPoint, Object)
DataPointSeries.OnDataPointStateChanged(DataPoint, DataPointState, DataPointState)
DataPointSeries.OnDataPointActualDependentValueChanged(DataPoint, IComparable, IComparable)
DataPointSeries.OnDataPointActualIndependentValueChanged(DataPoint, Object, Object)
Series.TitleName
Series.SeriesHost
Series.LegendItems
Series.Title
Series.TitleProperty
Series.OnTitleChanged(Object, Object)
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: OpenSilver.Controls.DataVisualization.Toolkit.dll
Syntax
[StyleTypedProperty(Property = "DataPointStyle", StyleTargetType = typeof(PieDataPoint))]
[StyleTypedProperty(Property = "LegendItemStyle", StyleTargetType = typeof(LegendItem))]
[TemplatePart(Name = "PlotArea", Type = typeof(Canvas))]
public class PieSeries : DataPointSeries, IControl, IFrameworkElement, IUIElement, IDependencyObject, ISeries, IRequireSeriesHost, IResourceDictionaryDispenser, IRequireGlobalSeriesIndex

Constructors

| Improve this Doc View Source

PieSeries()

Initializes a new instance of the PieSeries class.

Declaration
public PieSeries()

Fields

| Improve this Doc View Source

PaletteProperty

Identifies the Palette dependency property.

Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Palette

Gets or sets a palette of ResourceDictionaries used by the series.

Declaration
public Collection<ResourceDictionary> Palette { get; set; }
Property Value
Type Description
System.Collections.ObjectModel.Collection<ResourceDictionary>

Methods

| Improve this Doc View Source

AddDataPoint(DataPoint)

Creates a legend item for each data point.

Declaration
protected override void AddDataPoint(DataPoint dataPoint)
Parameters
Type Name Description
DataPoint dataPoint

The data point added.

Overrides
DataPointSeries.AddDataPoint(DataPoint)
| Improve this Doc View Source

AttachEventHandlersToDataPoint(DataPoint)

Attach event handlers to a data point.

Declaration
protected override void AttachEventHandlersToDataPoint(DataPoint dataPoint)
Parameters
Type Name Description
DataPoint dataPoint

The data point.

Overrides
DataPointSeries.AttachEventHandlersToDataPoint(DataPoint)
| Improve this Doc View Source

CreateDataPoint()

Creates a data point.

Declaration
protected override DataPoint CreateDataPoint()
Returns
Type Description
DataPoint

A data point.

Overrides
DataPointSeries.CreateDataPoint()
| Improve this Doc View Source

CreatePieLegendItem(DataPoint, Int32)

Creates a legend item from a data point.

Declaration
protected virtual LegendItem CreatePieLegendItem(DataPoint dataPoint, int index)
Parameters
Type Name Description
DataPoint dataPoint

The data point to use to create the legend item.

System.Int32 index

The 1-based index of the Control.

Returns
Type Description
LegendItem

The series host legend item.

| Improve this Doc View Source

DetachEventHandlersFromDataPoint(DataPoint)

Detaches event handlers from a data point.

Declaration
protected override void DetachEventHandlersFromDataPoint(DataPoint dataPoint)
Parameters
Type Name Description
DataPoint dataPoint

The data point.

Overrides
DataPointSeries.DetachEventHandlersFromDataPoint(DataPoint)
| Improve this Doc View Source

GetResourceDictionariesWhere(Func<ResourceDictionary, Boolean>)

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.

Declaration
public IEnumerator<ResourceDictionary> GetResourceDictionariesWhere(Func<ResourceDictionary, bool> predicate)
Parameters
Type Name Description
System.Func<ResourceDictionary, System.Boolean> predicate

A predicate that returns a value indicating whether to return an item.

Returns
Type Description
System.Collections.Generic.IEnumerator<ResourceDictionary>

An enumerator of ResourceDictionaries.

| Improve this Doc View Source

GlobalSeriesIndexChanged(Nullable<Int32>)

This method updates the global series index property.

Declaration
public void GlobalSeriesIndexChanged(int? globalIndex)
Parameters
Type Name Description
System.Nullable<System.Int32> globalIndex

The global index of the series.

| Improve this Doc View Source

OnBeforeUpdateDataPoints()

Updates all ratios before data points are updated.

Declaration
protected override void OnBeforeUpdateDataPoints()
Overrides
DataPointSeries.OnBeforeUpdateDataPoints()
| Improve this Doc View Source

OnDataPointDependentValueChanged(DataPoint, IComparable, IComparable)

Updates the data point when the dependent value is changed.

Declaration
protected override void OnDataPointDependentValueChanged(DataPoint dataPoint, IComparable oldValue, IComparable newValue)
Parameters
Type Name Description
DataPoint dataPoint

The data point.

System.IComparable oldValue

The old value.

System.IComparable newValue

The new value.

Overrides
DataPointSeries.OnDataPointDependentValueChanged(DataPoint, IComparable, IComparable)
| Improve this Doc View Source

OnDataPointIndependentValueChanged(DataPoint, Object, Object)

Updates the data point when the independent value is changed.

Declaration
protected override void OnDataPointIndependentValueChanged(DataPoint dataPoint, object oldValue, object newValue)
Parameters
Type Name Description
DataPoint dataPoint

The data point.

System.Object oldValue

The old value.

System.Object newValue

The new value.

Overrides
DataPointSeries.OnDataPointIndependentValueChanged(DataPoint, Object, Object)
| Improve this Doc View Source

OnDataPointsChanged(IList<DataPoint>, IList<DataPoint>)

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

Declaration
protected override void OnDataPointsChanged(IList<DataPoint> newDataPoints, IList<DataPoint> oldDataPoints)
Parameters
Type Name Description
System.Collections.Generic.IList<DataPoint> newDataPoints

New active data points.

System.Collections.Generic.IList<DataPoint> oldDataPoints

Old inactive data points.

Overrides
DataPointSeries.OnDataPointsChanged(IList<DataPoint>, IList<DataPoint>)
| Improve this Doc View Source

OnDataPointStylePropertyChanged(Style, Style)

DataPointStyleProperty property changed handler.

Declaration
protected override void OnDataPointStylePropertyChanged(Style oldValue, Style newValue)
Parameters
Type Name Description
Style oldValue

Old value.

Style newValue

New value.

Overrides
DataPointSeries.OnDataPointStylePropertyChanged(Style, Style)
| Improve this Doc View Source

OnLegendItemStylePropertyChanged(Style, Style)

Called when the value of the LegendItemStyle property changes.

Declaration
protected override void OnLegendItemStylePropertyChanged(Style oldValue, Style newValue)
Parameters
Type Name Description
Style oldValue

Old value.

Style newValue

New value.

Overrides
DataPointSeries.OnLegendItemStylePropertyChanged(Style, Style)
| Improve this Doc View Source

OnResourceDictionariesChanged(EventArgs)

Invokes the ResourceDictionariesChanged event.

Declaration
protected virtual void OnResourceDictionariesChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

Event arguments.

| Improve this Doc View Source

OnSeriesHostPropertyChanged(ISeriesHost, ISeriesHost)

Called when the value of the SeriesHost property changes.

Declaration
protected override void OnSeriesHostPropertyChanged(ISeriesHost oldValue, ISeriesHost newValue)
Parameters
Type Name Description
ISeriesHost oldValue

The value to be replaced.

ISeriesHost newValue

The new series host value.

Overrides
DataPointSeries.OnSeriesHostPropertyChanged(ISeriesHost, ISeriesHost)
| Improve this Doc View Source

RemoveDataPoint(DataPoint)

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

Declaration
protected override void RemoveDataPoint(DataPoint dataPoint)
Parameters
Type Name Description
DataPoint dataPoint

The data point to remove.

Overrides
DataPointSeries.RemoveDataPoint(DataPoint)
| Improve this Doc View Source

UpdateDataPoint(DataPoint)

Updates a data point.

Declaration
protected override void UpdateDataPoint(DataPoint dataPoint)
Parameters
Type Name Description
DataPoint dataPoint

The data point to update.

Overrides
DataPointSeries.UpdateDataPoint(DataPoint)

Events

| Improve this Doc View Source

ResourceDictionariesChanged

Event that is invoked when the ResourceDictionaryDispenser's collection has changed.

Declaration
public event EventHandler ResourceDictionariesChanged
Event Type
Type Description
System.EventHandler

Implements

ISeries
IRequireSeriesHost
IResourceDictionaryDispenser
IRequireGlobalSeriesIndex

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source