0

私のコードはここにあり、TranslateTransform3Dこれを実行した後はオフセット プロパティを編集できません。

                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);
4

1 に答える 1

1

TranslateTransform3D はFreezableから派生します。翻訳はアニメーション後に凍結されているため、変更できません。

于 2009-07-30T18:26:14.037 に答える