How to begin a storyboard when a property binding changed ?
The source of my image change every 5s (in my ViewModel), and I want play a storyboard when the image is changing.
<Grid>
<Image x:Name="image" Source="{Binding CurrentImage}"/>
</Grid>
You would typically add an EventTrigger for an event that gets fired whenever the
Sourceproperty changes. Unfortunately the Image control does not define such an event, so you would have to create your own by deriving from Image:Now you could use the
SourceChangedevent in an EventTrigger: