2009-07-30 10 views
0

Mein Code ist hier, und ich kann die Offset-Eigenschaft von TranslateTransform3D mehr nach dem Laufen nicht bearbeiten:Warum OffsetX von TranslateTransform3D kann nicht nach DoubleAnimation geändert werden?

   DoubleAnimation doubleAnimationX = 
        new DoubleAnimation(x, 
             new Duration(TimeSpan.FromSeconds(second))); 
       DoubleAnimation doubleAnimationY = 
        new DoubleAnimation(y, 
             new Duration(TimeSpan.FromSeconds(second))); 
       DoubleAnimation doubleAnimationZ = 
        new DoubleAnimation(z, 
             new Duration(TimeSpan.FromSeconds(second))); 
                translate.BeginAnimation(TranslateTransform3D.OffsetXProperty, doubleAnimationX); 
                translate.BeginAnimation(TranslateTransform3D.OffsetYProperty, doubleAnimationY); 
                translate.BeginAnimation(TranslateTransform3D.OffsetZProperty, doubleAnimationZ); 

Antwort

1

TranslateTransform3D leitet sich von Freezable. Ihr Übersetzer wird nach der Animation eingefroren, was ihn unveränderlich macht.

Verwandte Themen