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.
Before we begin this task, we should have completed the previous task: Implementing XAML Workflow Tab and Run events.
Open the workflow designer project we created in the previous task.
Create a new code file named
VisualTracking.csand 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...