共用方式為


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) 

事件類型

備註

當您想要顯示操作功能表時,請接聽此事件。

適用於

另請參閱