共用方式為


RotateTransform3D.Rotation 屬性

定義

取得或設定會指定旋轉的 Rotation3D

public:
 property System::Windows::Media::Media3D::Rotation3D ^ Rotation { System::Windows::Media::Media3D::Rotation3D ^ get(); void set(System::Windows::Media::Media3D::Rotation3D ^ value); };
public System.Windows.Media.Media3D.Rotation3D Rotation { get; set; }
member this.Rotation : System.Windows.Media.Media3D.Rotation3D with get, set
Public Property Rotation As Rotation3D

屬性值

Rotation3D

Rotation3D 會指定軸的旋轉角度。

範例

<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>

備註

相依性屬性資訊

識別碼欄位 RotationProperty
設定為 的中繼資料屬性 true

適用於