RingSlice Class
Represents a Path that renders a ring slice.
public class RingSlice : Shape
- Inheritance:
- object Visual UIElement FrameworkElement Shape object
Constructors
RingSlice()
Initializes an instance of the class.
public RingSlice()
Properties
DefiningGeometry
protected override Geometry? DefiningGeometry { get; }
Property Value
EndAngle
The end angle.
IsRenderedWhenFullCircle
Indicates whether the ring slice renders a full circle when the StartAngle and EndAngle are different values, but are normalized to the same value.
public bool IsRenderedWhenFullCircle { get; set; }
Property Value
- bool:
trueif the ring slice renders a full circle when the StartAngle and EndAngle are different values, but are normalized to the same value; otherwise,false. The default value istrue.
Radius
The ring's outer radius.
public double Radius { get; set; }
Property Value
- double:
The default value is
40.0.
Remarks
This ring is rendered inward from this radius.
StartAngle
The start angle.
Methods
ArrangeOverride(Size)
Arranges a Shape by evaluating its RenderedGeometry and Stretch properties.
protected override Size ArrangeOverride(Size finalSize)
| Parameter | Type | Description |
|---|---|---|
| finalSize | Size | The final evaluated size of the Shape. |
Returns
- Size:
The final size of the arranged Shape element.
MeasureOverride(Size)
Measures a Shape during the first layout pass prior to arranging it.
protected override Size MeasureOverride(Size availableSize)
| Parameter | Type | Description |
|---|---|---|
| availableSize | Size |
Returns
- Size:
The maximum System.Windows.Size for the Shape.
Fields
DataProperty
Defines the ActiproSoftware.Windows.Controls.RingSlice.Data property.
public static readonly DependencyProperty DataProperty
EndAngleProperty
Defines the EndAngle property.
public static readonly DependencyProperty EndAngleProperty
IsRenderedWhenFullCircleProperty
Defines the IsRenderedWhenFullCircle property.
public static readonly DependencyProperty IsRenderedWhenFullCircleProperty
RadiusProperty
Defines the Radius property.
public static readonly DependencyProperty RadiusProperty
StartAngleProperty
Defines the StartAngle property.
public static readonly DependencyProperty StartAngleProperty