Issuing actions from storyboards
Posted: 24 Oct 2019, 13:00
Hi guys,
I have been asked to look into creating a nice way of issuing UI audio events directly from storyboards. Some of our storyboards are quite elaborate and may take seconds to finish and have quite a lot of "jazz". The audio needs to match up to the UI animations, so it feels natural to do this directly within Blend.
I've not used actions yet, but it feels like a perfect solution for this. I intend to create actions to fire a 1 shot event, start an audio sound and to stop an audio sound. This is conceptually good, but I can't think of a good way to work with the timeline. Obviously there are no triggers so I can't rely on a trigger event. I suppose I could use a property trigger but this feels a little messy. I could use a timer event from the start of the storyboard event, but again, this feels like it may get out of sync with the timeline. Is there any nice way of interacting with triggers directly from the storyboard timeline? Ideally, I'd just like to have a "keyframe trigger" or something, where I could trigger an event at a given keyframe. Does this sound reasonable? How would I go about doing this?
Strangely, I've found very little information about how I would go about doing this in WPF so it feels like I'm trying to do something fundamentally incorrect. Any advice / guidance would be much appreciated.
Cheers,
-Steven
I have been asked to look into creating a nice way of issuing UI audio events directly from storyboards. Some of our storyboards are quite elaborate and may take seconds to finish and have quite a lot of "jazz". The audio needs to match up to the UI animations, so it feels natural to do this directly within Blend.
I've not used actions yet, but it feels like a perfect solution for this. I intend to create actions to fire a 1 shot event, start an audio sound and to stop an audio sound. This is conceptually good, but I can't think of a good way to work with the timeline. Obviously there are no triggers so I can't rely on a trigger event. I suppose I could use a property trigger but this feels a little messy. I could use a timer event from the start of the storyboard event, but again, this feels like it may get out of sync with the timeline. Is there any nice way of interacting with triggers directly from the storyboard timeline? Ideally, I'd just like to have a "keyframe trigger" or something, where I could trigger an event at a given keyframe. Does this sound reasonable? How would I go about doing this?
Strangely, I've found very little information about how I would go about doing this in WPF so it feels like I'm trying to do something fundamentally incorrect. Any advice / guidance would be much appreciated.
Cheers,
-Steven