Control WPF animation with WF Process

Source: Internet
Author: User
Control WPF animation with WF Process

This time the subject is WF, not just approval

This article uses a small example to demonstrate how to define an animation in WF to control the animation of the WPF page element.

The purpose of this example is to let everyone know the application of WF from another perspective. Don't think of the approval platform as soon as you mention WF,

WF is a process control engine that is very suitable for developing business related to process control. If your business logic is complex and needs to be modified frequently, or, you need to provide an interface that can customize the business logic, for example:

    • Approval, Process Business System
    • Industrial Control System
    • And logicAlgorithmRelated artificial intelligence systems, search engines, and data processing and distribution systems
    • Ui display of device running status
    • Camera route and rhythm control in the navigation system
    • Game plot control
    • Animated combinations of Characters in the game

Then you can consider WF. At least you can learn from the concept of WF.

 

Download example: http://files.cnblogs.com/wxwinter/WFWPF.rar

Let's take a look at the effect of the example.

 

 

Process

 

Control description

 

 

Program Description

There is nothing to say, in the program structure, allCodeNo more than 50 rows,

I have added manualworkflowschedulerservice for workflowruntime to solve the problem of cross-thread access to the UI.ArticleI have made a detailed description. I will not talk about it here.

I also used manualworkflowschedulerservice to solve the problem of cross-thread access to the UI. I am lazy. if I really want to create a graphics engine, I do not recommend using this method.

 

 

 

Summary

You can design a workflow in the xoml string format and provide an animation process designer.

 

You can use the basic [animation activity] In the animation process designer to combine complex animations. You can also develop some special animations, such as [360 degrees activity]. [eye-catching activity]

 

 

Finally:

This article does not introduce the graphic animation engine. What I want to explain here is:

WF is not just for approval,

The process logic control is separated from the object. The logic control can be designed later as needed without modifying the object.

This is a design idea. WF is only an Development Kit for implementing this design idea.

 

 

 

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.