Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Animation + Animation

 
 
Old 01-10-2006   #1 (permalink)
MueMeister


 
 

Animation + Animation

Hello,

My scenario contains a flow panel with child elements on it. Now the
user starts dragging an element on the panel (lets say to reorganize the
order of the elments). When dragging the other child elements evade the
dragged element and slide to the left or right side. When the user drags
over a new row in the panel the child elements of the previous row slide
back to their old location.
This is all done by WPF animations. My question aims the following scene:

1. The user drags an element.
2. The elements of the row slide aside.
3. The user wants to drag the element over the next row which starts the
animation on the previous row to slide back. The user does this so
fast that the first animation of sliding aside is not done.
--> the effect is that the first animation keeps going but from the
starting position of the second animation

Little confusing but my question is whether it's possible to stop a
playing animation on a property if another one is started right on the
same property? Or is there a possibility to observe the animations?

Regards,
Chris

My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
loser


 
 

Re: Animation + Animation

Take a look at Storyboard.Begin, there are two options for Handoff
(when one storyboard replaces another). If you use SnapshotAndReplace
(the default) then the previous animation will automatically be stopped
by the new animation.

As for getting the animations to blend properly, if you're using a
From-To animation (DoubleAnimation) leave the From empty and it will
default to the current value. For keyframed animation, no keyframe at
time zero implies the current value.

MueMeister wrote:
> Hello,
>
> My scenario contains a flow panel with child elements on it. Now the
> user starts dragging an element on the panel (lets say to reorganize the
> order of the elments). When dragging the other child elements evade the
> dragged element and slide to the left or right side. When the user drags
> over a new row in the panel the child elements of the previous row slide
> back to their old location.
> This is all done by WPF animations. My question aims the following scene:
>
> 1. The user drags an element.
> 2. The elements of the row slide aside.
> 3. The user wants to drag the element over the next row which starts the
> animation on the previous row to slide back. The user does this so
> fast that the first animation of sliding aside is not done.
> --> the effect is that the first animation keeps going but from the
> starting position of the second animation
>
> Little confusing but my question is whether it's possible to stop a
> playing animation on a property if another one is started right on the
> same property? Or is there a possibility to observe the animations?
>
> Regards,
> Chris


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Looking for that funny animation Chillout Room
disable animation Vista General
Icon animation Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46