Archive for December, 2008

Using Reflection Api in Silverlight

Aucun commentaire

Recently i needed to get static method contained by a Class to display their visual result.
Indeed The idea was to display Robert Penner's Equation used by tweened. For doing such task you just have to use Reflection Api provided by Silverlight Framework that you can find in System.Reflection package. You will find the code I used in this article. Read more »

Penner’s Equations Tweened show

2 commentaires

You can find here the visual behavior of penner's equations, you will notice that some missing. You can find TweenedEquations here.

Tweened Library for Silverlight 2 is released

8 commentaires

I put online Version 2 of Tweened. Tweened is an open-source CSharp 3 Animations generation library more oftenly called Tweens. Tweened is licensed under GNU General Public Licence v3.

The main purpose of this project is to provide a very simple way to animate any Xaml Objects you want in Silverlight 2. To reach this goal you just have to Reference Tweened.dll in a Silverlight 2 project. You will have access to color, RenderTransform and simple propertie Animation easily with many options like AutoReverse , BeginTime , SpeedRatio,etc...

It's released and maintained for Silverlight 2 or higher. In layman's terms, Tweened helps you move things around on the screen using only code, instead of the timeline. The general idea of a tweening Class is that dynamic animation and transitions (created by code) are easier to maintain and control, and more stable than animation based on the regular Silverlight timeline. The Tweened syntax is created with simplicity of use in mind, while still allowing access to more advanced features.

the general idea is to make doable the automatic creation of Storyboards resources type. Internally class Tween operates two Storyboards, the first is used for animation to go, the other is used if necessary to animation back. Storyboards Each of these contains a number of objects DoubleAnimation XAML. They serve as animated sequences. Each DoubleAnimation refers to an Xaml object and a lively targeted property, for example X or ScaleX. So a tween can animate lot of objects in several different equation of movement with different duration and behavior. For example a double animation could loop.

URL :: http://library.tweened.org/
Online Documentation :: http://library.tweened.org/doc/html/
Chm Documentation :: http://library.tweened.org/doc/Tweened.chm

VisualStateManager available in Blend 2 SP1 for WPF projects

Aucun commentaire
Visual State Manager

Visual State Manager

Until now VisualStateManager was a Silverlight 2 projects feature( You will find french video on how it works here ) but now with  the WPF ToolKit you will find here, it's possible to create Blend 2 projects including WisualStateManager. To get this feature I encourage you to go here where you will find full explanations. It's a very good news that permit to understand the direction blend 2 has taken. For myself I have tried it et all work perfectly but there's no a real integration into controls as we have in Silverlight 2 Projects. Of course you can create States in Controls but they are not defined by default in the Design view.