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
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 .