我试图在动画过程中将滑块值从0增加到100。它是以分数增加的,因为Slider.Value是双精度的,所以我不能使用Int32Animation。如何将滑块值增加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" />发布于 2011-06-08 18:39:54
使用不带From或To的By属性
<DoubleAnimation
Storyboard.TargetName="slider1"
Storyboard.TargetProperty="Value"
By="1"
Duration="0:0:10"/>https://stackoverflow.com/questions/5206637
复制相似问题