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

RotateTransform3D.Rotation Property

Gets or sets a Rotation3D that specifies the rotation. This is a dependency property.

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

public Rotation3D Rotation { get; set; }
For XAML information, see the Rotation3D type.

Property Value

Type: System.Windows.Media.Media3D.Rotation3D
Rotation3D that specifies an angle of rotation about an axis.

Identifier field


Metadata properties set to true


    <Transform3DGroup >
            <RotateTransform3D x:Name="myHorizontalRTransform">
                    <AxisAngleRotation3D x:Name="myHorizontalRotation" Angle="0" Axis="0 1 0" />
            <RotateTransform3D x:Name="myVerticalRTransform">
                    <AxisAngleRotation3D x:Name="myVerticalRotation" Angle="0" Axis="1 0 0" />
            <TranslateTransform3D x:Name="myTranslateTransform" OffsetX="0" OffsetY="0" OffsetZ="0" />

More Code

How to: Animate a 3-D Rotation Using Storyboards The following example shows how to make a 3D object rotate while it "wobbles" by animating the Angle and Axis properties of an AxisAngleRotation3D object. This AxisAngleRotation3D object specifies the rotation transform of the 3D object and so animating its properties creates the desire rotation effect. Within the Storyboard, DoubleAnimation is used to animate the Angle property while Vector3DAnimation is used to animate the Axis property.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2015 Microsoft