Expand Minimize

GestureRecognizer.RightTapped | righttapped event

Applies to Windows and Windows Phone

Occurs when the pointer input is interpreted as a right-tap gesture, regardless of input device.

  • Right mouse button click
  • Pen barrel button click
  • Touch or pen press and hold

Syntax


function onRightTapped(eventArgs) { /* Your code */ }
 
// addEventListener syntax
gestureRecognizer.addEventListener("righttapped", onRightTapped);
gestureRecognizer.removeEventListener("righttapped", onRightTapped);
 
- or -

gestureRecognizer.onrighttapped = onRightTapped;


Event information

Delegate TypedEventHandler<GestureRecognizer, RightTappedEventArgs>

Remarks

Listen for this event when you want to display a context menu.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

GestureRecognizer

 

 

Show:
© 2014 Microsoft