-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Microsoft Windows Workflow Foundation 4.0 Cookbook
By :

In the flowchart, we should use the FlowSwitch
Activity instead of the Switch<T>
activity, which we used in the previous task. In this task, we will create a flowchart workflow using the FlowSwitch<T>
activity. This switch activity will operate on a string.
Create a workflow project:
Create a new Workflow Console Application project and name the project as UsingFlowSwitchActivity
.
Author a workflow:
Open Workflow1.xaml
and author a workflow as shown in the following screenshot. Please note that when we drag the Flowswitch
activity to the flowchart, we will be shown a dialog to choose the type. In this task, we have chosen String
.
When we add the case links, please do not to add quotation marks ("") around the case branch. Because the Flowswitch
activity will not only operate on strings but also other types.
Run it:
Set UsingFlowChartActivity
as StartUp project. Press CTRL+F5 to build and run the workflow without debugging. A...
Change the font size
Change margin width
Change background colour