0
該行正常工作: -動畫屬性路徑問題
Storyboard.SetTargetProperty(animation, new PropertyPath(ShiverDirection == Orientation.Horizontal ? "X" : "Y"));
,其中動畫是: -
private DoubleAnimation animation = new DoubleAnimation();
private TranslateTransform transform = new TranslateTransform();
ease.Springiness = 2;
animation.EasingFunction = ease;
Storyboard.SetTarget(animation, transform);
Initialize();
storyboard.Children.Add(animation);`
的代碼被打破,但它仍然應該給你什麼,我想一個公平的想法去做。
然而,當我只是改變TranslateTransform到RotateTransform它停止工作: -
誰能告訴我什麼是RotateTransform屬性路徑語法?
感謝提前:)
有人如何達到1000代表,但仍然不知道如何在Stackoverflow中格式化代碼? – AnthonyWJones 2010-11-10 13:10:08
確定我猜 – Proclyon 2010-11-10 13:20:33
@AnthonyWJones: - 我很着急。我在1分鐘內創建了這篇文章;) – TCM 2010-11-11 05:31:40