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 动画回到 启动事件之前 的状态。

适用于

另请参阅