Udostępnij za pośrednictwem


AxisAngleRotation3D.AngleProperty Pole

Definicja

Identyfikuje Angle właściwość zależności.

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 

Wartość pola

DependencyProperty

Przykłady

Poniższy fragment kodu używa tej właściwości jako elementu docelowego animacji.

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

Dotyczy