SpatialGestureRecognizer.ManipulationCanceled 事件

定义

取消 操作 手势时发生。

// Register
event_token ManipulationCanceled(TypedEventHandler<SpatialGestureRecognizer, SpatialManipulationCanceledEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::ManipulationCanceled_revoker ManipulationCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialManipulationCanceledEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialManipulationCanceledEventArgs> ManipulationCanceled;
function onManipulationCanceled(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("manipulationcanceled", onManipulationCanceled);
spatialGestureRecognizer.removeEventListener("manipulationcanceled", onManipulationCanceled);
- or -
spatialGestureRecognizer.onmanipulationcanceled = onManipulationCanceled;
Public Custom Event ManipulationCanceled As TypedEventHandler(Of SpatialGestureRecognizer, SpatialManipulationCanceledEventArgs) 

事件类型

注解

对于手部交互,当 ManipulationStarted 手在手势期间丢失时,将触发 SpatialManipulationCanceledEventArgs 事件。

对于语音和运动控制器交互,此事件不会触发。

适用于