I was looking for a way to change an Image during a storyboard, or more specifically, change the Source
property of the image to point to a new image resou
Okay, solved it myself. Seems you have to use the ObjectAnimationUsingKeyFrames
and DiscreteObjectKeyFrame
as shown below:
<ObjectAnimationUsingKeyFrames
BeginTime="00:00:00"
Storyboard.TargetName="image"
Storyboard.TargetProperty="(Image.Source)">
<DiscreteObjectKeyFrame KeyTime="00:00:00.7000000">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="check_24.png" />
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>