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.
EndAngle
Gets the end angle.
HoleRadius
Gets or sets 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.
PathData
Gets or sets the path data.
Percentage
Gets or sets the percentage.
Radius
Gets or sets the radius.
StartAngle
Gets or sets the start angle.
Title
Gets or sets the title.
Values
Gets the values.
Methods
GetTetherEndPoint(Rect)
Gets the tether end point.
public Point GetTetherEndPoint(Rect drawingBounds)
Parameter | Type | Description |
---|---|---|
drawingBounds | Rect | The drawing bounds. |
Returns
GetTetherStartPoint(Rect)
Gets the tether start point.
public Point GetTetherStartPoint(Rect drawingBounds)
Parameter | Type | Description |
---|---|---|
drawingBounds | Rect | The drawing bounds. |
Returns
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
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()