2
我想在動畫期間將滑塊值從0增加到100。它以分數增加,因爲Slider.Value是Double,所以我不能使用Int32Animation。如何將滑塊值增加1?如何將DoubleAnimation增加1?
<Slider Height="23" Name="slider1" Width="100" SmallChange="1" IsSnapToTickEnabled="True" Maximum="100" />
<DoubleAnimation
Storyboard.TargetName="slider1"
Storyboard.TargetProperty="Value"
From="1" To="100" Duration="0:0:10" />
我不明白的問題。你可以嘗試改寫它嗎? – Gabe 2011-03-05 20:44:33