In This Article

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

Gets a value that represents the Geometry of the Shape.

protected override Geometry? DefiningGeometry { get; }

Property Value

Geometry:

The Geometry of the Shape.

EndAngle

The end angle.

public double EndAngle { get; set; }

Property Value

double:

The default value is 360.0.

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:

true if 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 is true.

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.

public double StartAngle { get; set; }

Property Value

double:

The default value is 0.0.

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

Extension Methods