Basic Designer Hosting 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.
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.
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
Download the sample by clicking Download Sample.
This extracts the sample project to your local hard disk.
Click Start, point to Programs, point to Microsoft Windows SDK, and then click CMD Shell.
Go to the source directory of the sample.
At the command prompt, type MSBUILD <Solution file name>.
To run the sample
- 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.