共用方式為


SpatialGestureRecognizer.NavigationCanceled 事件

定義

發生于 取消導覽 手勢時。

// Register
event_token NavigationCanceled(TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::NavigationCanceled_revoker NavigationCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialNavigationCanceledEventArgs> NavigationCanceled;
function onNavigationCanceled(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("navigationcanceled", onNavigationCanceled);
spatialGestureRecognizer.removeEventListener("navigationcanceled", onNavigationCanceled);
- or -
spatialGestureRecognizer.onnavigationcanceled = onNavigationCanceled;
Public Custom Event NavigationCanceled As TypedEventHandler(Of SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs) 

事件類型

備註

針對手部互動,當NavigationStarted手在手勢期間遺失時,會引發 SpatialNavigationCanceledEventArgs事件。

針對語音互動,此事件不會引發。

對於動作控制器互動,當 NavigationStarted 控制器在手勢期間遺失時,就會引發此事件。

適用於