我使用表达式混合创建了一个来自png图像的故事登机动画。当我第一次播放动画时它会闪烁但是当我第二次播放时它没有闪烁?为什么? 有没有什么方法可以让动画第一次不闪烁?
这是我的代码
<Storyboard x:Name="Storyboard1">
<ObjectAnimationUsingKeyFrames Duration="0:0:5.0"
Storyboard.TargetName="image"
Storyboard.TargetProperty="Source">
<ObjectAnimationUsingKeyFrames.KeyFrames>
<DiscreteObjectKeyFrame KeyTime="0:0:0.01">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a01.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:0.2">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a02.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:0.6">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a03.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:1.0">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a04.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:1.4">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a05.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:1.8">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a06.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:2.2">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a07.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:2.6">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a08.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:3.0">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="animation/entering toilet/a09.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames.KeyFrames>
</ObjectAnimationUsingKeyFrames>
</Storyboard>