Understand Silverlight Animation

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.