In real applications, we would like to write and test WF programs in imperative code, while storing, running, and transmitting workflow as an XAML string or file. In this task, we will convert a WF program instance to an XAML string.
Create a new Workflow Console Application under the
solution and name the project
ConvertWFInstanceToXML. Delete the
file that is created by default.
Program.cs file and change the code as follows:
using System; using System.Activities; using System.Activities.Statements; using System.Text; using System.Xaml; using System.Activities.XamlIntegration; using System.IO; ...