How to: Create an Activity Library
Custom activities are used to model your particular business processes in a workflow. The Activity Library template in Visual Studio 2010 has been provided to enable you to create such custom activities visually using the Windows Workflow Designer.
To create a Workflow Activity Library
Start Visual Studio 2010.
On the File menu, point to New, and then select Project….
The New Project dialog box opens.
In the Project Types pane, select Workflow from either the Visual C# projects or Visual Basic groupings depending on your language preference.
In the Templates pane, select Activity Library.
In the Name box, type in a descriptive name for your project to make it easy to identify.
In the Location box, type in the directory in which you want to save your project or click Browse to navigate to it.
In the Solution box, type in a descriptive name for your solution, then click OK.
Note: If you want to add a workflow console application to an existing solution, open that solution in Visual Studio 2010, right click the solution in Solution Explorer, and select Add, then New Project… to open the New Project dialog box. Proceed as described above in this procedure.
The project template creates an activity definition in XAML. Windows Workflow Designer opens and displays the canvas for your custom activity.
Drag an activity from the Toolbox to the design surface to include it in your custom activity.