Task 1: Create a New Windows Presentation Foundation Application
This topic applies to Windows Workflow Foundation 4 (WF4).
In this task, you will create an empty Windows Presentation Foundation (WPF) application by using the WPF Application Visual Studio template and add references to the appropriate .NET Framework 4 workflow assemblies.
To create the WPF Application project
Open Visual Studio 2010 and on the File menu, point to New, and then click Project.
In the New Project dialog box, select either Visual C# or Visual Basic from the Installed Templates pane on the left side of the box. If the language of your choice does not appear, look under Other Languages.
Select Windows in the Installed Templates pane.
In the top pane, confirm that (the default value) .NET Framework 4 has been selected in the drop-down list box, and then select WPF Application.
Set the name of the project to HostingApplication at the bottom of the window.
Set the solution name to RehostingTheDesigner.
Click OK to create the application project. Visual Studio 2010 creates a basic WPF UI for your application and includes the appropriate XAML and code-behind files.
Add references to WorkflowModel assemblies. To do this, in Solution Explorer, right-click the HostingApplication project and select Add Reference.
In the Add Reference dialog box, click the .NET tab, hold down the CTRL key, select the following assemblies, and then click OK:
See Task 2: Host the Workflow Designer to learn how to host the workflow designer design canvas.