GestureRecognizer.ManipulationStarted 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生於起始一或多個輸入點,而後續動作 (轉譯、展開或旋轉) 開始時。
// Register
event_token ManipulationStarted(TypedEventHandler<GestureRecognizer, ManipulationStartedEventArgs const&> const& handler) const;
// Revoke with event_token
void ManipulationStarted(event_token const* cookie) const;
// Revoke with event_revoker
GestureRecognizer::ManipulationStarted_revoker ManipulationStarted(auto_revoke_t, TypedEventHandler<GestureRecognizer, ManipulationStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<GestureRecognizer,ManipulationStartedEventArgs> ManipulationStarted;
function onManipulationStarted(eventArgs) { /* Your code */ }
gestureRecognizer.addEventListener("manipulationstarted", onManipulationStarted);
gestureRecognizer.removeEventListener("manipulationstarted", onManipulationStarted);
- or -
gestureRecognizer.onmanipulationstarted = onManipulationStarted;
Public Custom Event ManipulationStarted As TypedEventHandler(Of GestureRecognizer, ManipulationStartedEventArgs)