Freigeben über


PlaneProjection.RotationZ Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the number of degrees to rotate the object around the z-axis of rotation.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property RotationZ As Double
public double RotationZ { get; set; }
<PlaneProjection RotationZ="double"/>

Property Value

Type: System.Double
The number of degrees to rotate the object around the z-axis of rotation. The default is 0.

Remarks

Dependency property identifier field: RotationZProperty

The RotationX, RotationY, and RotationZ properties specify the number of degrees to rotate the object in space. For example, the RotationX property specifies rotating around the horizontal axis of the object. The following illustration demonstrates how the RotationX property rotates an object around the x-axis of rotation.

RotateX = "-35"

Rotate around X-axis

The RotationY property rotates around a line drawn vertically along the object (the y-axis of rotation).

RotateY = "-35"

Rotate around the Y-axis.

The RotationZ property rotates around a line perpendicular to the object (a line that goes directly through the plane of the object).

RotateZ = "-45"

Rotate around z-axis.

These rotation properties can specify a negative value, which rotates the object a number of degrees in the opposite direction. In addition, the absolute number can be greater than 360, which rotates the object more than one full rotation.

The following sample allows you to experiment with the different rotation properties.

Run this sample

You can change where the axis of rotation are positioned and therefore change the effect of rotation. For more information, see CenterOfRotationX, CenterOfRotationY, and CenterOfRotationZ.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.