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