I would like to have a storyboard started, whenever the value of MyCounter
changes.
With a DataTrigger
I only can trigger on a specific value.
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding Path=MyCounter}" Value="Doesn't matter">
<BeginStoryboard Storyboard="{StaticResource myStoryboard}"/>
</DataTrigger>
</DataTemplate.Triggers>
You can use an EventTrigger with the TargetUpdated event to trigger the storyboard instead of a DataTrigger. See here for an example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With