AxisAngleRotation3D.AngleProperty フィールド

定義

Angle 依存関係プロパティを識別します。

public: static initonly System::Windows::DependencyProperty ^ AngleProperty;
public static readonly System.Windows.DependencyProperty AngleProperty;
 staticval mutable AngleProperty : System.Windows.DependencyProperty
Public Shared ReadOnly AngleProperty As DependencyProperty 

フィールド値

DependencyProperty

次のコード抜粋では、このプロパティをアニメーションのターゲットとして使用します。

//Define a transformation
RotateTransform3D myRotateTransform = new RotateTransform3D(new AxisAngleRotation3D(new Vector3D(0, 2, 0), 1));
//Define an animation for the transformation
DoubleAnimation myAnimation = new DoubleAnimation();
myAnimation.From = 1;
myAnimation.To = 361;
myAnimation.Duration = new Duration(TimeSpan.FromMilliseconds(5000));
myAnimation.RepeatBehavior = RepeatBehavior.Forever;
//Add animation to the transformation
myRotateTransform.Rotation.BeginAnimation(AxisAngleRotation3D.AngleProperty, myAnimation);

//Add transformation to the model
teapotModel.Transform = myRotateTransform;
'Define a transformation
Dim myRotateTransform As New RotateTransform3D(New AxisAngleRotation3D(New Vector3D(0, 2, 0), 1))
'Define an animation for the transformation
Dim myAnimation As New DoubleAnimation()
myAnimation.From = 1
myAnimation.To = 361
myAnimation.Duration = New Duration(TimeSpan.FromMilliseconds(5000))
myAnimation.RepeatBehavior = RepeatBehavior.Forever
'Add animation to the transformation
myRotateTransform.Rotation.BeginAnimation(AxisAngleRotation3D.AngleProperty, myAnimation)

'Add transformation to the model
teapotModel.Transform = myRotateTransform

適用対象