![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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 |
| | #2 (permalink) |
| Guest | 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 |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| disable animation | Duane Hebert | Vista General | 0 | 07-17-2008 08:54 AM |
| Icon animation | Ed Dixon | Vista General | 7 | 04-29-2006 05:36 PM |
| Aurora and Animation | Glen Sollors | Avalon | 0 | 02-25-2006 12:15 AM |
| 3D Animation | viliescu | Avalon | 2 | 01-10-2006 03:53 PM |