Using the Legacy Activity Designer
This topic describes how to use the activity designer in the legacy Windows Workflow Designer. Use the legacy designer when targeting the .NET Framework version 3.5 or the .NET Framework 3.0.
The Activity Designer enables you to create your own custom activities.
Creating a Custom Activity
Follow these steps to create a custom activity using the Activity Designer:
On the Project menu, click Add Activity.
Select the Activity or Activity (with code separation) template.
Use the Activity template to create an activity with the activity definition and the user code in same code file.
Use the Activity (with code separation) template to create an activity with the activity definition expressed as workflow markup and the user code in a separate code file.
- Use the Activity template to create an activity with the activity definition and the user code in same code file.
Type an activity name or keep the default name, and then click Add.
You can also create a set of custom activities by creating a new project of type Workflow Activity Library. For more information about this project type, see How to: Create a Workflow Activity Library (Legacy).
Configuring an Activity
While the Activity Designer is active, you can use the property browser to configure the properties listed in the following table.
Name of the activity.
Base class that the activity derives from. The default base class is SequenceActivity. In the Properties window, click the Base Class ellipses […] to select another base class in the Browse and Select a .NET Type Dialog Box (Legacy).
User-defined description of the activity.
Set to True by default to enable activity execution and validation. Set to False to disable activity execution and validation. For information about activity execution and validation, see Developing Workflow Activities.
Adding Child Activities
You can drag child activities from the Toolbox to the activity that you are designing. You can then configure each child activity using the property browser.