O'Reilly logo

Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# by K. Scott Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Pure XAML

Here is the start of a workflow defined using only XAML.

<SequentialWorkflowActivity
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MyWorkflow"
>
<WhileActivity>
<CodeActivity />
</WhileActivity>
</SequentialWorkflowActivity>

The root element is a SequentialWorkflowActivity. WF provides the SequentialWorkflowActivity and StateMachineWorkflowActivity classes primarily to serve as root level activities. These classes manage the execution of their children using different styles. The SequentialWorkflowActivity serially executes its children until the last activity completes. The order of activities inside a sequential workflow is important, as the order will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required