O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

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

Implementing visual tracking

In this task, we will create a visual tracking participant. The tracking participant will let the workflow designer display the currently executing activity. When the workflow is executing, the currently executing activity is shown with a yellow outline and debug arrow.

Getting ready

Before we begin this task, we should have completed the previous task: Implementing XAML Workflow Tab and Run events.

How to do it...

  1. Open the workflow designer project:

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

  2. Create the VisualTracking participant:

    Create a new code file named VisualTracking.cs and fill the file with the following code:

    using System; usingSystem.Collections.Generic; usingSystem.Activities.Tracking; ...

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