WorkflowView::AddDesignerMessageFilter Method (WorkflowDesignerMessageFilter^)

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

public:
void AddDesignerMessageFilter(
	WorkflowDesignerMessageFilter^ designerMessageFilter
)

A WorkflowDesignerMessageFilter is a component that handles messages from the WorkflowView.

Using the Strategy design pattern, the WorkflowView will pass messages to the WorkflowDesignerMessageFilter to be handled.

Mouse events, keyboard events, paint and layout events are passed on to a WorkflowDesignerMessageFilter associated with the WorkflowView.

In the following example, a WorkflowDesignerLoader is created and a WorkflowView object is associated with the workflow design surface. In order to retrieve notifications of messages, a WorkflowDesignerMessageFilter is created and added to the WorkflowView object.

This code example is part of the Outlook Workflow Wizard SDK Sample from the WorkflowViewWrapper.cs file. For more information, see Outlook Workflow Wizard Sample.

No code example is currently available or this language may not be supported.

The MessageFilter object created in the previous code is derived from the WorkflowDesignerMessageFilter class. By overriding the methods of this class, the message filter is notified whenever a user interface event occurs on the WorkflowView object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: