- ShawnHarris
- Posts: 1
- Joined:
How to initiate?
I intend to initiate a storyboard when an event is triggered from a viewmodel. What would be the most effective approach to accomplish this?
-
sfernandez
Site Admin
- Posts: 2997
- Joined:
Re: How to initiate?
Hello,
What engine are you using: Unity, Unreal, custom C++ or C#?
Anyway, you can fire an event from your viewmodel and listen to it from the UI using the DataEventTrigger:
Hope this helps.
What engine are you using: Unity, Unreal, custom C++ or C#?
Anyway, you can fire an event from your viewmodel and listen to it from the UI using the DataEventTrigger:
Code: Select all
<TextBlock Text="Download Finished!" Visibility="Collapsed">
<b:Interaction.Triggers>
<noesis:DataEventTrigger Source="{Binding}" EventName="DownloadFinished">
<b:ControlStoryboardAction Storyboard="{StaticResource ShowDownloadText}"/>
</noesis:DataEventTrigger>
</b:Interaction.Triggers>
</TextBlock>
Who is online
Users browsing this forum: Bing [Bot] and 5 guests