EdgeGesture.Canceled 事件

定義

當使用者取消邊緣型 UI 的顯示或隱藏動作時引發。

// Register
event_token Canceled(TypedEventHandler<EdgeGesture, EdgeGestureEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
EdgeGesture::Canceled_revoker Canceled(auto_revoke_t, TypedEventHandler<EdgeGesture, EdgeGestureEventArgs const&> const& handler) const;
public event TypedEventHandler<EdgeGesture,EdgeGestureEventArgs> Canceled;
function onCanceled(eventArgs) { /* Your code */ }
edgeGesture.addEventListener("canceled", onCanceled);
edgeGesture.removeEventListener("canceled", onCanceled);
- or -
edgeGesture.oncanceled = onCanceled;
Public Custom Event Canceled As TypedEventHandler(Of EdgeGesture, EdgeGestureEventArgs) 

事件類型

備註

此事件只會與觸控輸入一起發生;使用者可將手指移回互動的開始位置和增益,或繼續將手指拖曳到螢幕中間。 此事件前面一律會加上 Starting 事件。

取消動作會導致被擷取或關閉的 UI 以動畫顯示回到 開始事件之前 的狀態。

適用於

另請參閱