Rotation Property
Collapse the table of content
Expand the table of content

CompositeTransform.Rotation Property

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

Gets or sets the angle, in degrees, of clockwise rotation.

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

public double Rotation { get; set; }
<CompositeTransform Rotation="double"/>

Property Value

Type: System.Double
The angle, in degrees, of clockwise rotation. The default is 0.

Dependency property identifier field: RotationProperty

You can use the CenterX and CenterY properties to set the center of rotation for the object. For example, if you wanted a 100 by 100 square to pivot around its center, you would set the CenterX and CenterY properties to 50.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft