Compartilhar via


Basic Designer Hosting Sample

Download sample

This sample shows how the workflow designer can be re-hosted in a Windows application. It also shows how a separate development environment/execution environment can be created outside Visual Studio.

Output from Basic Designer Hosting sample

The Basic Designer Hosting application enables the user to add a new CodeActivity activity to the workflow designer. You do this by clicking the Add button in the application. This action displays a dialog box where you can enter the name and description of the CodeActivity activity.

New CodeActivity dialog box

After entering the information, the user clicks OK to create a CodeActivity activity in the designer.

When an activity has been added, the user can go back, select the activity, see the information that is entered in the CodeActivity area of the application, and overwrite the activity information by entering new information and clicking the Update button.

To exercise the zoom capabilities, the user must enter a new zoom value, and the designer automatically zooms to the selected percentage.

To build the sample

  1. Download the sample by clicking Download Sample.

    This extracts the sample project to your local hard disk.

  2. Click Start, point to Programs, point to Microsoft Windows SDK, and then click CMD Shell.

  3. Go to the source directory of the sample.

  4. At the command prompt, type MSBUILD <Solution file name>.

To run the sample

  1. In the SDK Command Prompt window, run the .exe file in the WorkflowDesignerRehosting\bin\debug folder (or the WorkflowDesignerRehosting \bin folder for the Visual Basic version of the sample), which is located below the main folder for the sample.

See Also

Reference

WorkflowView
WorkflowDesignerMessageFilter

Other Resources

Hosting Workflow Designers
Designer Hosting Samples

© 2007 Microsoft Corporation. All rights reserved.