我想更改我的DoubleAnimation的KeyTimes。我有5個KeyTimes,我已經將它們命名爲Key1,Key2,Key3等。如何縮短StoryBoard的KeyTime值DoubleAnimation
DoubleAnimation稱爲xAnimation。有誰知道我可以如何改變KeyTimes?
我想更改我的DoubleAnimation的KeyTimes。我有5個KeyTimes,我已經將它們命名爲Key1,Key2,Key3等。如何縮短StoryBoard的KeyTime值DoubleAnimation
DoubleAnimation稱爲xAnimation。有誰知道我可以如何改變KeyTimes?
如果您需要相同的動畫,您只需設置更高的速度比例,只需更快或更慢。
設置爲:
myStoryboard.SpeedRatio=2;
上面的例子會以最快的速度播放動畫的兩倍。您可以相應地使用更高或更低的數字。
非常感謝!這工作完美。非常感謝。 – Subby 2012-07-09 13:27:59
你真的很受歡迎:) – naqvitalha 2012-07-09 13:39:17
你碰巧檢查過這個博客嗎? http://www.windowsphonegeek.com/articles/WP7-Animations-in-depthndash-Overview-and-Getting-Started – KPath001 2012-07-08 15:44:20
你好。我讀過這篇文章,只看到:fadeInAnimation.Duration = new Duration(TimeSpan.FromSeconds(1.0));這隻會削減我的整個動畫一半以上。 問題是,我不知道如何保持完全相同的動畫,但速度更快。這篇文章沒有告訴我。 – Subby 2012-07-08 15:53:16