How to start a Storyboard from a DataEventTrigger?
Posted: 08 Jul 2022, 12:49
I want to start a storyboard when an event from a viewmodel is invoked. What is the best way of doing this?
Welcome to our official discussion site. You’ll find topics on features, bugs, development, and general support here
https://www.noesisengine.com/forums/
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions">
<Grid.Resources>
<Storyboard x:Key="anim" .../>
</Grid.Resources>
<b:Interaction.Triggers>
<noesis:DataEventTrigger Source="{Binding}" EventName="DownloadFinished">
<b:ControlStoryboardAction Storyboard="{StaticResource anim}"/>
</noesis:DataEventTrigger>
</b:Interaction.Triggers>
</Grid>