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 RingSlice class.
public RingSlice()
Properties
DefiningGeometry
protected override Geometry DefiningGeometry { get; }
Property Value
EndAngle
Gets or sets the end angle.
public double EndAngle { get; set; }
Property Value
- double:
The end angle. The default value is
360.0.
IsRenderedWhenFullCircle
Gets or sets 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
Gets or sets the ring's outer radius.
public double Radius { get; set; }
Property Value
- double:
The ring's outer radius. The default value is
40.0.
Remarks
This ring is rendered inward from this radius.
StartAngle
Gets or sets the start angle.
public double StartAngle { get; set; }
Property Value
- double:
The start angle. The default value is
0.0.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
| Parameter | Type | Description |
|---|---|---|
| finalSize | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
MeasureOverride(Size)
Measures all children given an available size and returns the element's desired size based on the size of its children.
protected override Size MeasureOverride(Size availableSize)
| Parameter | Type | Description |
|---|---|---|
| availableSize | Size | The size the element is suggested to fit inside. |
Returns
- Size:
The desired size of the element.
Fields
DataProperty
Identifies the ActiproSoftware.Windows.Controls.RingSlice.Data dependency property. This field is read-only.
public static readonly DependencyProperty DataProperty
EndAngleProperty
Identifies the EndAngle dependency property. This field is read-only.
public static readonly DependencyProperty EndAngleProperty
IsRenderedWhenFullCircleProperty
Identifies the IsRenderedWhenFullCircle dependency property. This field is read-only.
public static readonly DependencyProperty IsRenderedWhenFullCircleProperty
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