Pour simplifier, Tweened vous aide à animer des objets visuels via une ou deux lignes de code C# au lieu de créer les animations au sein de Blend. L'idée général d'une telle librairie est que les animations dynamiques générées par code sont plus faciles à crées et à maintenir. La syntaxe pour créer des tweens a été conçue afin de proposer la manière la plus simple de coder tout en proposant des fonctionnalités avancées comme la diffusion d'événements de fin de lecture ou encore la gestion de séquences au sein d'une animation.

http://library.tweened.org/examples/menu/
En interne la classe Tween crée deux Storyboards, le premier gère toutes les séquences à l'aller, le second gère toutes les séquences au retour, afin de pouvoir proposer l'animation opposée. Chacun de ces Storyboards contient des séquences sous forme de DoubleAnimation ou de ColorAnimation. Chaque séquence peut cibler indifféremment un objet et une propriété, par exemple l'objet rectangle et sa propriété X ou Angle. Un seul tween peut donc animer plusieurs objets indépendants les uns des autres et constituer une animation complexe. Pour finir il faudra spécifier le type d'équation de mouvement et la durée dont vous aurez besoin pour chaque séquence, ainsi faire rebondir une balle ou créer des menus animés devient un jeu d'enfant.
URL :: http://library.tweened.org/
Online Documentation :: http://library.tweened.org/doc/html/
Chm Documentation :: http://library.tweened.org/doc/Tweened.chm

us version
February 11th, 2009 at 12:19
Hi,
great job, its about time for a nice working tweening class for silverlight!
i am tring to implement your tweener and found out few difficulties,
i have a sample code that shows the bugs, it is currently present at http://www.codemcode.com/sltween/movableXap.rar
it acts strange when you try to move few objects to different positions, just play with it for a minute, and you’ll see my point.
waiting for your reply,
Ady.
February 12th, 2009 at 11:00
Hi Ady,
I send you an email today about that
February 12th, 2009 at 14:37
So ok I understood the problem. In fact there are of two kind :
1 - the first concern that in the Try { }
you have to put that code :
t2t.ContinueTo(moveLocation);
//tweenObjects[mc].AddSequences(t2t); that line was wrong I think
tweenObjects[mc].Start();
2 - the second point is known behavior of Silverlight player (i think). in fact when a storyboard targets a renderTransform property, it is just impossible to get the actual value of that property. I don’t know exactly why… The solution consists in using TweenableProperties.Left instead of X. So you will have access to updated value for that kind of properties. I send you the project updated now.
February 12th, 2009 at 22:03
Thanks for your response,
it works like charm now
i will defo use this class alot !
keep on the good work!
ady.
May 27th, 2009 at 19:25
Is the best tweener that I have found for Silverlight 2.
I have modified source and put a method to remove Resources, because Tween don’t work on a loop function that will be instanciated:
public void CloseTween()
{
Application.Current.Resources.Remove(StoryBoardNameOut);
Application.Current.Resources.Remove(StoryBoardNameIn);
}
May 28th, 2009 at 10:11
Hi Francisco thanks it’s cool to see that some one in the world is using Tweened. I will release a new version of it for Silverlight 3, a kind of wrapper
May 28th, 2009 at 10:14
I will modify the Tweened library in that direction and let developer to say if they want storyboards to be referenced in Resources property or not. After all we can avoid to add them to resources