WorkflowDesignerMessageFilter.OnShowContextMenu Method (Point)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Occurs when the workflow should show a context menu.

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

protected virtual bool OnShowContextMenu(
	Point screenMenuPoint


Type: System.Drawing.Point

The point at which to the context menu is shown.

Return Value

Type: System.Boolean

true if the message is handled; otherwise, false.

OnShowContextMenu occurs when the workflow should show a context menu.

The following code example shows how to override the OnShowContextMenu method so that it always returns true.

This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. For more information, seeBasic Designer Hosting.

protected override bool OnShowContextMenu(Point menuPoint)
    return true;

.NET Framework
Available since 3.0
Return to top