In This Article

PieSlice Class

A single pie slice in a pie series.

public class PieSlice : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IPieSlice
Inheritance:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control Object

Constructors

PieSlice()

Initializes a new instance of the PieSlice class.

public PieSlice()

Properties

CollisionPolygon

Gets the collision polygon.

public IEnumerable<Point> CollisionPolygon { get; }

Property Value

IEnumerable<Point>:

The collision polygon.

DrawingBounds

Gets or sets the drawing bounds.

public Rect DrawingBounds { get; set; }

Property Value

Rect:

The drawing bounds.

EndAngle

Gets the end angle.

public double EndAngle { get; }

Property Value

Double:

The end angle.

HoleRadius

Gets or sets the hole radius.

public double HoleRadius { get; set; }

Property Value

Double:

The hole radius.

LabelPosition

Gets or sets the label position.

public PieSliceLabelPosition LabelPosition { get; set; }

Property Value

PieSliceLabelPosition:

The label position.

OriginalItems

Gets the original items.

public IList<object> OriginalItems { get; }

Property Value

IList<Object>:

The original items.

PathData

Gets or sets the path data.

public Geometry PathData { get; set; }

Property Value

Geometry:

The path data.

Percentage

Gets or sets the percentage.

public double Percentage { get; set; }

Property Value

Double:

The percentage.

Radius

Gets or sets the radius.

public double Radius { get; set; }

Property Value

Double:

The radius.

StartAngle

Gets or sets the start angle.

public double StartAngle { get; set; }

Property Value

Double:

The start angle.

Title

Gets or sets the title.

public string Title { get; set; }

Property Value

String:

The title.

Values

Gets the values.

public IList<object> Values { get; }

Property Value

IList<Object>:

The values.

Methods

GetTetherEndPoint(Rect)

Gets the tether end point.

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

The drawing bounds.

Returns

Point:

A Point where the tether ends.

GetTetherStartPoint(Rect)

Gets the tether start point.

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

The drawing bounds.

Returns

Point:

A Point where the tether starts.

MeasureOverride(Size)

Provides the behavior for the Measure pass of layout. Classes can override this method to define their own Measure pass behavior.

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

The available size that this object can give to child objects. Infinity (PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available.

Returns

Size:

The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

Fields

DrawingBoundsProperty

Identifies the DrawingBounds dependency property. This field is read-only.

public static readonly DependencyProperty DrawingBoundsProperty

HoleRadiusProperty

Identifies the HoleRadius dependency property. This field is read-only.

public static readonly DependencyProperty HoleRadiusProperty

LabelPositionProperty

Identifies the LabelPosition dependency property. This field is read-only.

public static readonly DependencyProperty LabelPositionProperty

PathDataProperty

Identifies the PathData dependency property. This field is read-only.

public static readonly DependencyProperty PathDataProperty

PercentageProperty

Identifies the Percentage dependency property. This field is read-only.

public static readonly DependencyProperty PercentageProperty

RadiusProperty

Identifies the Radius dependency property. This field is read-only.

public static readonly DependencyProperty RadiusProperty

StartAngleProperty

Identifies the StartAngle dependency property. This field is read-only.

public static readonly DependencyProperty StartAngleProperty

TitleProperty

Identifies the Title dependency property. This field is read-only.

public static readonly DependencyProperty TitleProperty

Inherited Members

Extension Methods