Version

SendMouseDown Property (PressAndTapGestureEventArgs)

Returns or sets a boolean value indicating whether the control's MouseDown event is raised in response to this event.
Syntax
'Declaration
 
Public Property SendMouseDown As Boolean
public bool SendMouseDown {get; set;}
Remarks

This property is only applicable when the TimeElapsed property returns zero, indicating that this is the first of the two firings of the events for this gesture.

Since a context menu is typically displayed in response to the PressAndTapGesture event, and because many applications use the MouseDown event to initialize a context menu, a WM_RBUTTONDOWN message is sent to the control, causing the MouseDown event to fire. This property can be set to false to prevent this behavior.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also