To understand Silverlight animation, you need to understand the following rules:
1. Silverlight animation is time-based.
When using Silverlight animation, you need to set the animation initial value, animation end value, and animation duration. Silverlight will help us calculate the animation frame frequency.
2. Silverlight animation acts on the attributes of the element.
One Silverlight animation only does one thing, that is, modifying the attribute value within the specified time interval.
3. Each data type requires a corresponding class.
For example, the button. Width attribute uses the double data type, that is, to change the value of button. Width (in the form of an animation), The doubleanimation data type is required. Similarly, to change the value of the color attribute, the coloranimation data type is required for several years.
Silverlight only provides a few animation data types, including: Double, object, color, and point. Therefore, in most cases, we need to define our own classes to achieve the animation effect.