September 2010
Intermediate to advanced
272 pages
5h 16m
English
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 Chapter01
solution and name the project ConvertWFInstanceToXML. Delete the Workflow1.xaml
file that is created by default.
Open 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; ...