In This Article

PieSlice Class

A single pie slice in a pie series.

public class PieSlice : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

PieSlice()

Initializes an instance of the class.

public PieSlice()

Properties

CollisionPolygon

The collision polygon.

public IEnumerable<Point> CollisionPolygon { get; }

Property Value

IEnumerable<Point>

DrawingBounds

The drawing bounds.

public Rect DrawingBounds { get; set; }

Property Value

Rect

EndAngle

The end angle.

public double EndAngle { get; }

Property Value

double

HoleRadius

The hole radius.

public double HoleRadius { get; set; }

Property Value

double

LabelPosition

The label position.

public PieSliceLabelPosition LabelPosition { get; set; }

Property Value

PieSliceLabelPosition

OriginalItems

The original items.

public IList<object> OriginalItems { get; }

Property Value

IList<object>

PathData

The path data.

public Geometry? PathData { get; set; }

Property Value

Geometry

Percentage

The percentage.

public double Percentage { get; set; }

Property Value

double

Radius

The radius.

public double Radius { get; set; }

Property Value

double

StartAngle

The start angle.

public double StartAngle { get; set; }

Property Value

double

Title

The title.

public string? Title { get; set; }

Property Value

string

Values

The values.

public IList<object> Values { get; }

Property Value

IList<object>

Methods

GetTetherEndPoint(Rect)

Returns the tether end point.

public Point GetTetherEndPoint(Rect drawingBounds)
Parameter Type Description
drawingBounds Rect

The drawing bounds.

Returns

Point

GetTetherStartPoint(Rect)

Returns the tether start point.

public Point GetTetherStartPoint(Rect drawingBounds)
Parameter Type Description
drawingBounds Rect

The drawing bounds.

Returns

Point

MeasureOverride(Size)

Called to remeasure a control.

protected override Size MeasureOverride(Size availableSize)
Parameter Type Description
availableSize Size

Returns

Size:

The size of the control, up to the maximum specified by constraint.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

Fields

DrawingBoundsProperty

Defines the DrawingBounds property.

public static readonly DependencyProperty DrawingBoundsProperty

HoleRadiusProperty

Defines the HoleRadius property.

public static readonly DependencyProperty HoleRadiusProperty

LabelPositionProperty

Defines the LabelPosition property.

public static readonly DependencyProperty LabelPositionProperty

PathDataProperty

Defines the PathData property.

public static readonly DependencyProperty PathDataProperty

PercentageProperty

Defines the Percentage property.

public static readonly DependencyProperty PercentageProperty

RadiusProperty

Defines the Radius property.

public static readonly DependencyProperty RadiusProperty

StartAngleProperty

Defines the StartAngle property.

public static readonly DependencyProperty StartAngleProperty

TitleProperty

Defines the Title property.

public static readonly DependencyProperty TitleProperty

Extension Methods