Issue with StoryboardCompletedTrigger not calling the InvokeCommandAction action
Posted: 10 May 2021, 15:14
Hello
I was trying to use StoryboardCompletedTrigger but however StoryboardCompletedTrigger.StoryboardChanged is correctly called and the event is attached but when the storyboard ends, it doesn't call the function.
Is there a specific way to use this StoryboardCompletedTrigger and call a method?
Thank you
I was trying to use StoryboardCompletedTrigger but however StoryboardCompletedTrigger.StoryboardChanged is correctly called and the event is attached but when the storyboard ends, it doesn't call the function.
Code: Select all
<Grid Name="PART_mainGridLayout" >
<Grid.Resources>
<Storyboard x:Key="LocationFanfare" >
...
</Storyboard>
</Grid.Resources>
<Grid.Triggers>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard Storyboard="{StaticResource LocationFanfare}" />
</EventTrigger>
</Grid.Triggers>
<i:Interaction.Triggers>
<!-- DOESN T WORK-->
<ei:StoryboardCompletedTrigger Storyboard="{StaticResource LocationFanfare}">
<i:InvokeCommandAction Command="{Binding NewLocationStoryboardCompletedCommand}"/>
</ei:StoryboardCompletedTrigger>
</i:Interaction.Triggers>
</Grid>
Thank you