Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Animation + Animation

Closed Thread
 
Thread Tools Display Modes
Old 01-10-2006   #1 (permalink)
MueMeister
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
Old 01-10-2006   #2 (permalink)
loser
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


Closed Thread

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








Vistax64.com 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 2005-2008

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 47 48 49 50