.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Lee Hnetinka

Home >> Articles >> Silverlight >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Create animations using Silverlight - Part 2

Posted By:Mahadesh Mahalingappa       Posted Date: September 30, 2011    Points: 200    Category: Silverlight    URL: http://www.dotnetspark.com  

In this article we are going to see some more animations. Try to understand how we can create and control animations better.

Silverlight Animations Part 2:

In this article we are going to see some more animations . Try to understand how we can create and control animations better .
I have taken this example from the link http://www.silverlight.net/learn/creating-ui/animation-and-easing/animations-%28silverlight-quickstart%29

Lets create a new Silverlight Project as shown below :

In this article we would see how to create Point animations in Silverlight .
XAML code :


Point animation is very similar to Double Animation and all its properties are similar . It animates the value of a Point property between two target values using linear interpolation over a specified Duration.

Event handling code is given below :

  private void Animation_Begin(object sender, RoutedEventArgs e)
  private void Animation_Pause(object sender, RoutedEventArgs e)
  private void Animation_Resume(object sender, RoutedEventArgs e)
  private void Animation_Stop(object sender, RoutedEventArgs e)

We can easily Control the StoryBoard animation w have created by using the Methods Begin , Pause , Resume and Stop .

The Most Usefull method I felt was Resume and it helps to resume the animation from the Points we had stopped.

In the next article we would try out some other animations . Till then Happy Coding .
 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend