WorkflowDesignerMessageFilter Class
Provides a base class for all workflow message filters.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
The WorkflowDesignerMessageFilter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | WorkflowDesignerMessageFilter | When implemented in a derived class, initializes an instance of a WorkflowDesignerMessageFilter. |
| Name | Description | |
|---|---|---|
![]() | MessageHitTestContext | Gets the HitTestInfo that describes the context of the WorkflowDesignerMessageFilter. |
![]() | ParentView | Gets the WorkflowView that is associated with the WorkflowDesignerMessageFilter. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases the resources used by the WorkflowDesignerMessageFilter. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the WorkflowDesignerMessageFilter and optionally releases the managed resources. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Attempts to free resources by calling Dispose(false) before the object is reclaimed by garbage collection. (Overrides Object::Finalize().) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Initialize | Initializes the WorkflowDesignerMessageFilter with the associated WorkflowView. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnDragDrop | Occurs when the mouse button is released above an object during a drag operation. |
![]() | OnDragEnter | Occurs when the mouse pointer enters the bounds of an object during a drag operation. |
![]() | OnDragLeave | Occurs when the mouse pointer leaves the bounds of an object during a drag operation. |
![]() | OnDragOver | Occurs when the mouse pointer moves within the bounds of an object during a drag operation. |
![]() | OnGiveFeedback | Occurs during a drag operation. |
![]() | OnKeyDown | Occurs when a key is pressed. |
![]() | OnKeyUp | Occurs when a key is released. |
![]() | OnLayout | Occurs when child objects should be repositioned. |
![]() | OnMouseCaptureChanged | Occurs when the items selected by dragging the mouse changes. |
![]() | OnMouseDoubleClick | Occurs when you double-click the mouse. |
![]() | OnMouseDown | Occurs when a mouse button is clicked. |
![]() | OnMouseEnter | Occurs when the mouse pointer enters the bounds of an object. |
![]() | OnMouseHover | Occurs when the mouse pointer pauses above an object. |
![]() | OnMouseLeave | Occurs when the mouse pointer leaves the bounds of an object. |
![]() | OnMouseMove | Occurs when the mouse pointer moves while within the bounds of an object. |
![]() | OnMouseUp | Occurs when the mouse button is released. |
![]() | OnMouseWheel | Occurs when the mouse wheel moves. |
![]() | OnPaint | Occurs when a paint message is received. |
![]() | OnPaintWorkflowAdornments | Occurs when the workflow should repaint its adornments. |
![]() | OnQueryContinueDrag | Occurs during a drag operation. |
![]() | OnScroll | Occurs when a user scrolls in a workflow designer. |
![]() | OnShowContextMenu | Occurs when the workflow should show a context menu. |
![]() | OnThemeChange | Occurs when the theme of the workflow changes. |
![]() | ProcessMessage | Occurs when a raw Win32 message must be processed. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The workflow designer provides a Strategy design pattern to create replaceable message filter objects to handle events.
Derive from the WorkflowDesignerMessageFilter class to create message filters that can respond to workflow designer events, such as drag operations, layout and paint operations, and other designer events. To add a custom message filter to the message filters chain, call the AddDesignerMessageFilter on the WorkflowView or override the MessageFilters virtual property on the custom root activity and add the custom message filter to the collection returned from the base class.
The following code example shows a custom designer message filter that derives from WorkflowDesignerMessageFilter. The class, named CustomMessageFilter, overrides a number of its base class methods including OnMouseDown, OnMouseMove, OnMouseUp, OnMouseDoubleClick, OnMouseEnter, OnMouseHover, OnMouseLeave, OnDragEnter, OnDragOver, and OnKeyDown.
This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. For more information, seeBasic Designer Hosting.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
