WorkflowView::AddDesignerMessageFilter Method (WorkflowDesignerMessageFilter^)
Adds a WorkflowDesignerMessageFilter to the WorkflowView.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
public: void AddDesignerMessageFilter( WorkflowDesignerMessageFilter^ designerMessageFilter )
Parameters
- designerMessageFilter
-
Type:
System.Workflow.ComponentModel.Design::WorkflowDesignerMessageFilter^
The WorkflowDesignerMessageFilter to add to the WorkflowView.
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.
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.
Available since 3.0