SweepDirection Property
Collapse the table of content
Expand the table of content

ArcSegment.SweepDirection Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that specifies whether the arc is drawn in the Clockwise or Counterclockwise direction.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public SweepDirection SweepDirection { get; set; }
<ArcSegment SweepDirection="Clockwise"/>
-or-
<ArcSegment SweepDirection="CounterClockwise"/>

Property Value

Type: System.Windows.Media.SweepDirection
One of the enumeration values that specifies the direction in which the arc is drawn. The default is Counterclockwise.

Dependency property identifier field: SweepDirectionProperty

For an ArcSegment with a given Size, RotationAngle, start point, and end Point, four different arcs are possible. Specifying the IsLargeArc property reduces the number of possible arcs to two: an arc drawn from the start point to the end Point in a Clockwise direction and an arc drawn from the start point to the end point in a Counterclockwise direction.

The following illustration shows two elliptical arcs that are identical except for their SweepDirection settings.

ArcSegments with Clockwise SweepDirection

Sweepdirection of clockwise.
ArcSegments with CounterClockwise SweepDirection

SweepDirection of counter clockwise.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft