GestureRecognizer.RightTapped 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
無論輸入裝置為何,指標輸入都會解譯為右鍵手勢時發生。
範例包括:
- 滑鼠右鍵或觸控板按鈕按一下
- 手寫筆筒按鈕按一下
- 觸控或手寫筆按住
如需此 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)