This documentation is archived and is not being maintained.

ActivityDesigner.Verbs Property

Gets the collection of verbs to be associated with the designer.

Namespace:  System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected virtual ActivityDesignerVerbCollection Verbs { get; }

Use the Verbs method to determine the verbs to show on the Context Menu.

The following example demonstrates how to override the Verbs property to insert custom verb actions for a ActivityPreviewDesigner. The CreateActivityVerbs creates a new ActivityDesignerVerb named "Add New Parallel Branch" and associates an event handler named OnAddParallelBranch. When the verb is clicked in the workflow designer, the event handler is called.

private ActivityDesignerVerbCollection verbs = null;

protected override ActivityDesignerVerbCollection Verbs
        if (this.verbs == null)

        return this.verbs;

private void CreateActivityVerbs()
    this.verbs = new ActivityDesignerVerbCollection();

    ActivityDesignerVerb addBranchVerb = new ActivityDesignerVerb(this,
        DesignerVerbGroup.View, "Add New Parallel Branch", new EventHandler(OnAddParallelBranch));


protected void OnAddParallelBranch(object sender, EventArgs e)
    // Code for adding a new branch to the parallel activity goes here

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0