Using Silverlight to build a workflow designer (9) (with source code download, Online Demo, video tutorial)

Source: Internet
Author: User

Source codeDownload: http://www.shareidea.net/opensource.htm

Online Demo: http://www.shareidea.net/workflow.htm

Video tutorial: http://www.shareidea.net/video/sharedesigner/sharedesigner.html 

Technical support QQ: 85444465

Series of indexes in this article:

Using Silverlight to build a workflow designer (1)

Build a workflow designer using Silverlight (2)

Using Silverlight to build a workflow designer (3)

Build a workflow designer using Silverlight (4)

Build a workflow designer using Silverlight (5)

Build a workflow designer using Silverlight (6)

Using Silverlight to build a workflow designer (7)

Using Silverlight to build a workflow designer (8)

Using Silverlight to build a workflow designer (9)

Build a workflow designer using Silverlight (10)

Build a workflow designer using Silverlight (11)

Sat. Enhanced User Experience 6.5 Binding check

When a user saves a process, the system needs to perform a general constraint check on the process currently configured by the user. These binding checks include the following:

LEach process must have a start activity and an end activity.

LThere must be at least one follow-up activity.

LNo successor is allowed to end the activity. At least one advance activity is required.

LBranch activities have only one precursor activity, and at least one subsequent activity is required.

LThe aggregation activity has only one successor activity and must have at least one precursor activity.

LA regular interaction activity must have at least one precursor activity and a successor activity (by default, a regular interaction activity has or branches and or aggregates activity features ).

LEach rule must have a start activity and an end activity.

LThe start and end activities of any two rules cannot be the same.

 

Pass the aboveProgramThe inspection process meets general constraints, but does not indicate that this is a completely correct process. These checks are only compiled and do not contain runtime checks. Runtime check refers to some binding checks during the process. These include but are not limited:

LCheck when writing rules and conditions.

LProcess endless loop check.

And so on.

This program only involves the general constraints check.

 

When saving the process, check each activity and rule based on the preceding constraints. If the conditions are not met, a prompt is displayed, as shown in:

Source Address:Http://www.cnblogs.com/chegan/archive/2009/05/10/1453457.html

6.6 Add animation effect

UseSystem. Windows. Media. AnimationThe relevant classes in the namespace are used to set the animation effect. The animation effect in this article is very simple. The progressive reality and hiding are used when the context menu is in reality and when the context menu is hidden.

XAMLCodeAs follows:

 

Code
< Stackpanel. Resources >
< Storyboard X: Name = "Sbshowmenu" >
< Doubleanimation From = "0" To = "170" Duration = "00:00:0. 2"  
Storyboard. targetname = "Spcontentmenu"  
Storyboard. targetproperty = "Height" >
< Doubleanimation. easingfunction >
< Circleease Easingmode = "Easein" />
</ Doubleanimation. easingfunction >
</ Doubleanimation >
</ Storyboard >
< Storyboard X: Name = "Sbclosemenu" >
< Doubleanimation From = "170" To = "0" Duration = "00:00:0. 2"  
Storyboard. targetname = "Spcontentmenu"  
Storyboard. targetproperty = "Height" >
< Doubleanimation. easingfunction >
< Circleease Easingmode = "Easein" />
</ Doubleanimation. easingfunction >
</ Doubleanimation >
</ Storyboard >
</ Stackpanel. Resources >

Another improvement is the improvement of the curve.

VII. Multi-culture

SilverlightMulti-cultural programming methods andAsp.netIf you are familiarAsp.netIn multi-cultural programmingSliverlightYou must have known about multi-cultural programming. HoweverSilverlight2.0For multi-culture support, there seems to be another point.BugTherefore, many problems are encountered during the compilation process. After referring to the online solution, you do not have to repeat it here,TerryleeIt has been clearly written.

Http://www.cnblogs.com/Terrylee/archive/2008/06/19/localization-in-silverlight-2-beta-2-part1.html

 

 

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.