Skip to Content
Microsoft Windows Workflow Foundation 4.0 Cookbook
book

Microsoft Windows Workflow Foundation 4.0 Cookbook

by Andrew Zhu
September 2010
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 16m
English
Packt Publishing
Content preview from Microsoft Windows Workflow Foundation 4.0 Cookbook

Implementing XAML Workflow Tab and Run events

In this task, our workflow designer will have the ability to run workflow so that we can test our workflow when we are editing.

Getting ready

Before we begin this task, we must have completed the previous task: Implementing Save and Save As events.

How to do it...

  1. Open the workflow designer project:

    Open the workflow designer project we created in the previous task.

  2. Add code to the designer:

    Open the designer's backend CS code file, MainWindow.xaml.cs, and create a new method GetActivity. Then add code to the TabItem_GotFocus_RefreshXamlBox method and the MenuItem_Click_RunWorkflow method:

    Activity GetActivity() { wd.Flush(); System.IO.StringReaderstringReader = new System. IO.StringReader(wd.Text); Activity ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Essential Windows Workflow Foundation

Essential Windows Workflow Foundation

Dharma Shukla, Bob Schmidt

Publisher Resources

ISBN: 9781849680783Other