This documentation is archived and is not being maintained.

Using the Activity Designer

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:

  1. On the Project menu, click Add Activity.
  2. Select the Activity or Activity (with code separation) template.
    1. Use the Activity template to create an activity with the activity definition and the user code in same code file.
    2. 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.
  3. 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.

Configuring an Activity

While the Activity Designer is active, you can use the property browser to configure the properties listed in the following table.

Property Comments


Name of the activity.

Base Class

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.


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.

See Also

Copyright © 2007 by Microsoft Corporation. All rights reserved.