共用方式為


GestureRecognizer.Holding 事件

定義

當使用者使用單一觸控、滑鼠、觸控板或手寫筆/手寫筆接觸) 執行按住手勢 (時發生。

如需此 API 的詳細資訊,請參閱 UWP WinRT 保留 主題。

// Register
event_token Holding(TypedEventHandler<GestureRecognizer, HoldingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GestureRecognizer::Holding_revoker Holding(auto_revoke_t, TypedEventHandler<GestureRecognizer, HoldingEventArgs const&> const& handler) const;
public event TypedEventHandler<GestureRecognizer,HoldingEventArgs> Holding;
function onHolding(eventArgs) { /* Your code */ }
gestureRecognizer.addEventListener("holding", onHolding);
gestureRecognizer.removeEventListener("holding", onHolding);
- or -
gestureRecognizer.onholding = onHolding;
Public Custom Event Holding As TypedEventHandler(Of GestureRecognizer, HoldingEventArgs) 

事件類型

適用於