GestureRecognizer.Tapped 事件

定义

当指针输入被解释为点击手势时发生。

有关此 API 的更多详细信息,请参阅 UWP WinRT 点击 主题。

// Register
event_token Tapped(TypedEventHandler<GestureRecognizer, TappedEventArgs const&> const& handler) const;

// Revoke with event_token
void Tapped(event_token const* cookie) const;

// Revoke with event_revoker
GestureRecognizer::Tapped_revoker Tapped(auto_revoke_t, TypedEventHandler<GestureRecognizer, TappedEventArgs const&> const& handler) const;
public event TypedEventHandler<GestureRecognizer,TappedEventArgs> Tapped;
function onTapped(eventArgs) { /* Your code */ }
gestureRecognizer.addEventListener("tapped", onTapped);
gestureRecognizer.removeEventListener("tapped", onTapped);
- or -
gestureRecognizer.ontapped = onTapped;
Public Custom Event Tapped As TypedEventHandler(Of GestureRecognizer, TappedEventArgs) 

事件类型

适用于