GestureRecognizer.RightTapped 事件

定义

当指针输入被解释为右键单击手势(无论输入设备如何)时发生。

  • 单击鼠标右键
  • 笔筒按钮单击
  • 触摸或笔长按
// 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) 

事件类型

注解

在想要显示上下文菜单时侦听此事件。

适用于

另请参阅