共用方式為


GestureRecognizer.CrossSliding 事件

定義

發生于使用者在僅支援沿著單一軸移動流覽的內容區域內,透過單一觸控連絡人) 執行投影片或撥動手勢 (時。 筆勢必須以垂直于這個移動流覽軸的方向發生。

如需此 API 的詳細資訊,請參閱 UWP WinRT CrossSliding 主題。

// Register
event_token CrossSliding(TypedEventHandler<GestureRecognizer, CrossSlidingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GestureRecognizer::CrossSliding_revoker CrossSliding(auto_revoke_t, TypedEventHandler<GestureRecognizer, CrossSlidingEventArgs const&> const& handler) const;
public event TypedEventHandler<GestureRecognizer,CrossSlidingEventArgs> CrossSliding;
function onCrossSliding(eventArgs) { /* Your code */ }
gestureRecognizer.addEventListener("crosssliding", onCrossSliding);
gestureRecognizer.removeEventListener("crosssliding", onCrossSliding);
- or -
gestureRecognizer.oncrosssliding = onCrossSliding;
Public Custom Event CrossSliding As TypedEventHandler(Of GestureRecognizer, CrossSlidingEventArgs) 

事件類型

適用於