In This Article

RingSlice Class

Represents a System.Windows.Shapes.Path that renders a ring slice.

public class RingSlice : Shape, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Shapes.Shape Object

Constructors

RingSlice()

Initializes an instance of the RingSlice class.

public RingSlice()

Properties

DefiningGeometry

Gets a value that represents the System.Windows.Media.Geometry of the System.Windows.Shapes.Shape.

protected override Geometry DefiningGeometry { get; }

Property Value

System.Windows.Media.Geometry:

The System.Windows.Media.Geometry of the System.Windows.Shapes.Shape.

EndAngle

Gets or sets the end angle.

public double EndAngle { get; set; }

Property Value

System.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

System.Boolean:

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

Gets or sets the ring's outer radius.

public double Radius { get; set; }

Property Value

System.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

System.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 System.Windows.FrameworkElement derived class.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize System.Windows.Size

The final area within the parent that this element should use to arrange itself and its children.

Returns

System.Windows.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 System.Windows.Size

The size the element is suggested to fit inside.

Returns

System.Windows.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

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods