Share via


GestureRecognizer.Holding イベント

定義

ユーザーが (シングル タッチ、マウス、またはペン/スタイラスの接触を使用して) 長押しジェスチャを実行したときに発生します。

// 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) 

イベントの種類

注釈

タッチ入力とペン/スタイラス入力による保留をサポートするには、GestureSettings プロパティで Hold を指定します。

マウス入力による保留をサポートするには、GestureSettings プロパティで HoldWithMouse を指定します。

Holding イベントは 2 回発生します。1 回は保留が開始 (開始) し、保持が終了 (完了 または 取り消し済み) の場合はもう一度発生します。

適用対象

こちらもご覧ください