Expression Blend Example Chinese Tutorial (9)

Source: Internet
Author: User
Tags expression silverlight

With the support of blend's powerful design features, designers and developers can implement SILVERLIGHT/WPF animations without code, such as the StoryBoard described above, which is a typical example, and designers and developers need only provide the necessary elements to achieve simple animation. In general, repetitive animations or similar animations often occur in a project, and if a new StoryBoard is created each time, the significant project code is bloated and sometimes affects the efficiency of the project. In addition, the same animation effect will be used in many projects, if the animation effect can be compiled into a universal class to provide calls, you can achieve a multiplier effect. To address these issues, Microsoft has introduced a new feature, called Behavior, in Silverlight 3, also known as behavior. This article takes everybody quick learning grasps the behavior in the blend use.

Before you begin your study, you need to know a few key points about the behaviors (behavior):

(1) Behaviors (behavior) is a reusable code set that can be attached to any object;

(2) Designers and developers can use behaviors (behavior) to add related functionality to XAML without designing any code;

(3) The behaviors (behavior) can be appended to any object element through XAML without any background code design;

(4) A behaviors (behavior) can be called at the same time by multiple objects;

Quick understanding of behaviors (behavioral) concepts

Behaviors (behavior), we can simply understand the user interaction common class, or a UserControl, the use of "behavior" is mainly to simplify the work of designers and developers, provide a reusable user interaction code. Once created, once published, you can use drag-and-drop operations in blend to apply the behavior to different projects. Remember once some netizens asked, Behavior (behavior) from where to declare call? Where is its namespace? As we mentioned earlier, behaviors (behavior) is a new feature of Silverlight 3 to provide reusable user interface code that is integrated into the Expression Blend view design, which means Blend is currently the simplest design tool to invoke behaviors (behavior), so Microsoft Behaviors (behavior) class library encapsulated into Expression Blend 3 and Expression Blend 3 SDK, after the installation of the tools successfully, You can get behaviors (behavior) support. After the successful installation of Blend 3, two DLL files can be found in c:\Programe Files\Microsoft Sdks\expression\blend 3 \interactivity\libraries\silverlight , respectively:

System.Windows.Interactivity.dll, the link library defines the behaviors (behavior) base class, which supports behaviors (behavior) with the support of the link library;

Microsoft.Expression.Interactions.dll, the link library provides a library of extended behavior classes, as well as some action and trigger classes as demo examples;

The composition of behaviors (behavior)

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.