RotateTransform3D.Rotation Property

 

Gets or sets a Rotation3D that specifies the rotation.

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

public Rotation3D Rotation { get; set; }

Property Value

Type: System.Windows.Media.Media3D.Rotation3D

Rotation3D that specifies an angle of rotation about an axis.

Identifier field

RotationProperty

Metadata properties set to true

None

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

.NET Framework
Available since 3.0
Return to top
Show: