Class Arc
Control that draws a symmetrical arc with rounded edges.
public class Arc : Shape, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
Arc
- Implements
- Inherited Members
Examples
<ui:Arc
EndAngle="359"
StartAngle="0"
Stroke="{ui:ThemeResource SystemAccentColorSecondaryBrush}"
StrokeThickness="2"
Visibility="Visible" />
Fields
EndAngleProperty
Identifies the EndAngle dependency property.
public static readonly DependencyProperty EndAngleProperty
Field Value
StartAngleProperty
Identifies the StartAngle dependency property.
public static readonly DependencyProperty StartAngleProperty
Field Value
SweepDirectionProperty
Identifies the SweepDirection dependency property.
public static readonly DependencyProperty SweepDirectionProperty
Field Value
Properties
DefiningGeometry
protected override Geometry DefiningGeometry { get; }
Property Value
EndAngle
Gets or sets the final angle from which the arc will be drawn.
public double EndAngle { get; set; }
Property Value
IsLargeArc
Gets a value indicating whether one of the two larger arc sweeps is chosen; otherwise, if is false, one of the smaller arc sweeps is chosen.
public bool IsLargeArc { get; }
Property Value
StartAngle
Gets or sets the initial angle from which the arc will be drawn.
public double StartAngle { get; set; }
Property Value
SweepDirection
Gets or sets the direction to where the arc will be drawn.
public SweepDirection SweepDirection { get; set; }
Property Value
Methods
ArrangeOverride(Size)
Arranges a Shape by evaluating its RenderedGeometry and Stretch properties.
protected override Size ArrangeOverride(Size finalSize)
Parameters
Returns
DefinedGeometry()
Get the geometry that defines this shape.
protected Geometry DefinedGeometry()
Returns
PointAtAngle(double)
Draws a point on the coordinates of the given angle.
protected Point PointAtAngle(double angle)
Parameters
angledoubleThe angle at which to create the point.
Returns
PropertyChangedCallback(DependencyObject, DependencyPropertyChangedEventArgs)
Event triggered when one of the key parameters is changed. Forces the geometry to be redrawn.
protected static void PropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)