共用方式為


GestureRecognizer.RightTapped 事件

定義

無論輸入裝置為何,指標輸入都會解譯為右鍵手勢時發生。

範例包括:

  • 滑鼠右鍵或觸控板按鈕按一下
  • 手寫筆筒按鈕按一下
  • 觸控或手寫筆按住

如需此 API 的詳細資訊,請參閱 UWP WinRT 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) 

事件類型

適用於