-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Windows Application Development Cookbook
By :
Apart from the already described animations, it is also possible to animate the values of various properties of controls. In this recipe, you will learn how to animate colors.
As an example, you will create a simple page with basic shapes that will form a visualization of three lights--red, yellow, and green--arranged horizontally one next to another. After you click on the drawing, the animation should start and these lights should be switched on (one per second): red, yellow, and green. Of course, the color should be changed from black with the help of animation.
To step through this recipe, you need only the automatically generated project.
To prepare the example that animates the color of ellipses, perform the following steps:
Define a storyboard for animating colors of three ellipses, representing lights, by modifying the code of the MainPage.xaml file, as follows:
<Page (...)>
<Page.Resources>...