WorkflowDesignerMessageFilter.OnMouseLeave Method

Definition

Occurs when the mouse pointer leaves the bounds of an object.

protected:
 virtual bool OnMouseLeave();
protected virtual bool OnMouseLeave ();
abstract member OnMouseLeave : unit -> bool
override this.OnMouseLeave : unit -> bool
Protected Overridable Function OnMouseLeave () As Boolean

Returns

true if the message is handled; otherwise, false.

Examples

The following code example shows how to override the OnMouseLeave method to return false so that other components in the designer architecture can process the method.

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

protected override bool OnMouseLeave()
{
    //Allow other components to process this event by not returning true.
    mouseDown = false;
    return false;
}
Protected Overrides Function OnMouseLeave() As Boolean
    ' Allow other components to process this event by not returning true.
    mouseDown = False
    Return False
End Function

Remarks

OnMouseLeave occurs when the mouse pointer leaves the bounds of an object.

Applies to

See also