NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Fri
25
Jan '08

Beginners Animation tutorial - Rotation

My second WPF animation tutorial is available at http://www.digitalmanic.com/index.php?title=Beginners_Animation_tutorial_-_Rotate

 
            DoubleAnimation da = new DoubleAnimation();
            da.From = 0;
            da.To = 360;
            da.Duration = new Duration(TimeSpan.FromSeconds(3));
            da.RepeatBehavior = RepeatBehavior.Forever;
            RotateTransform rt = new RotateTransform();
            rectangle1.RenderTransform = rt;
            rt.BeginAnimation(RotateTransform.AngleProperty, da);
'

Beginners Animation tutorial with WPF - C#

I wrote this tutorial for WPF beginners. Expected readers are programmers.

Read the full tutorial at: http://www.digitalmanic.com/index.php?title=Beginners_Animation_tutorial


 
DoubleAnimation da = new DoubleAnimation();
da.From = 30;
da.To = 100;
da.Duration =  new Duration(TimeSpan.FromSeconds(1));
Button1.BeginAnimation(Button.HeightProperty, da);
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website