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...
Open the workflow designer project:
Open the workflow designer project we created in the previous task.
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; usingSystem.Activities.Presentation; usingSystem.Activities.Presentation.Debug; usingSystem.Windows.Threading; usingSystem.Activities.Presentation.Services; usingSystem.Activities.Debugger; usingSystem.Activities; usingSystem.Threading...