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.
DrawingBounds
The drawing bounds.
public Rect DrawingBounds { get; set; }
Property Value
- Rect
EndAngle
The end angle.
HoleRadius
The hole radius.
LabelPosition
The label position.
OriginalItems
The original items.
PathData
The path data.
Percentage
The percentage.
Radius
The radius.
StartAngle
The start angle.
Title
The title.
Values
The values.
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