GestureRecognizer.RightTapped Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
// Register
event_token RightTapped(TypedEventHandler<GestureRecognizer, RightTappedEventArgs const&> const& handler) const;
// Revoke with event_token
void RightTapped(event_token const* cookie) const;
// Revoke with event_revoker
GestureRecognizer::RightTapped_revoker RightTapped(auto_revoke_t, TypedEventHandler<GestureRecognizer, RightTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<GestureRecognizer,RightTappedEventArgs> RightTapped;
function onRightTapped(eventArgs) { /* Your code */ }
gestureRecognizer.addEventListener("righttapped", onRightTapped);
gestureRecognizer.removeEventListener("righttapped", onRightTapped);
- or -
gestureRecognizer.onrighttapped = onRightTapped;
Public Custom Event RightTapped As TypedEventHandler(Of GestureRecognizer, RightTappedEventArgs)
Event Type
Remarks
Listen for this event when you want to display a context menu.
Applies to
See also
- Input and interactions
- User interaction mode sample
- Focus visuals sample
- Input: Device capabilities sample
- Input: Simplified ink sample
- Input: Windows 8 gestures sample
- Input: XAML user input events sample
- XAML scrolling, panning, and zooming sample
- DirectX touch input sample
- Input: Manipulations and gestures (C++) sample
- Input: Touch hit testing sample
- Input source identification sample
- Touch injection sample
- Win32 touch hit-testing sample