|
-
Jan 21st, 2009, 05:16 AM
#1
[RESOLVED] [2008] Making animations aware of each other (WPF)
Hi Guys,
WPF question here, I'm using VB.NET as the code-behind so I figure I might get away with posting it here :P Just in case anyone has any ideas.
I've got a StoryBoard that runs on MouseEnter and MouseLeave, basically all it does is scales the control up a bit to make it larger and moves it accross the screen slightly (on MouseEnter) and then on MouseLeave it just sets it back to how it was.
The problem is that the animation lasts for about 1.5 seconds, but if the user just passes their mouse over the control and then half way through the animation they move the mouse off the control then the second StoryBoard kicks in but starts with the control in its final position from the MouseEnter animation. Obviously this results in a "skipping" or "jumping" effect in the animation and is less than ideal...
So I'm just wondering how you are supposed to make it so that if an animation is half way through and then another event is triggered so another animation starts then it kind of 'gracefully' hands over to the animation that is starting.
Any ideas? I assume this is a fairly common scenario with mouse over animations but I cant find much on the web about how to get around it.
I'm using Blend to make the storyboards by the way.
Thanks
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|