GestureRecognizer 類別

定義

提供手勢和操作辨識、事件接聽程序和設定。

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

public ref class GestureRecognizer sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GestureRecognizer final
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GestureRecognizer
function GestureRecognizer()
Public NotInheritable Class GestureRecognizer
繼承
Object Platform::Object IInspectable GestureRecognizer
屬性

建構函式

GestureRecognizer()

初始化 GestureRecognizer 物件的新實例。

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

屬性

AutoProcessInertia

取得或設定值,這個值表示是否自動產生慣性期間的操作。

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

CrossSlideExact

取得或設定值,這個值表示是否報告從初始接觸到交叉投影片互動結尾的確切距離。

CrossSlideHorizontally

取得或設定值,這個值表示交叉投影片軸是否為水平軸。

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

CrossSlideThresholds

取得或設定值,指出 CrossSliding 互動的距離臨界值。

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

GestureSettings

取得或設定值,這個值表示應用程式支援的手勢和操作設定。

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

InertiaExpansion

取得或設定值,指出重設大小或調整時,物件大小從慣性開頭到慣性結束 (的相對變更) 。

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

InertiaExpansionDeceleration

取得或設定值,指出調整大小或展開時,操作完成) 時,從慣性開始到慣性結束 (的減速速率。

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

InertiaRotationAngle

取得或設定值,這個值表示當旋轉操作完成) 時,在慣性 (結束之物件旋轉的最終角度。

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

InertiaRotationDeceleration

取得或設定值,這個值表示旋轉操作完成) 時,從慣性開始到慣性結束 (的減速速率。

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

InertiaTranslationDeceleration

取得或設定值,指出翻譯操作完成) 時,從慣性開始到慣性結束 (的減速速率。

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

InertiaTranslationDisplacement

取得或設定值,指出當翻譯操作) 完成時,從慣性開始到慣性結束 (對象畫面位置的相對變更。

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

IsActive

取得值,這個值表示是否正在處理互動。

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

IsInertial

取得值,這個值表示操作是否仍在慣性期間處理, (沒有輸入點作用中) 。

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

ManipulationExact

取得或設定值,這個值表示是否報告從初始接觸到互動結尾的確切距離。

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

MouseWheelParameters

取得一組與滑鼠裝置的滾輪按鈕相關聯的屬性。

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

PivotCenter

取得或設定偵測到單一指標輸入時旋轉互動的中心點。

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

PivotRadius

取得或設定從 PivotCenter 到指標輸入的半徑,以在偵測到單一指標輸入時進行旋轉互動。

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

ShowGestureFeedback

取得或設定值,指出在互動期間是否顯示視覺回饋。

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

方法

CanBeDoubleTap(PointerPoint)

識別點選是否仍可解譯為雙擊手勢的第二個點選。

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

CompleteGesture()

讓手勢辨識器完成互動。

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

ProcessDownEvent(PointerPoint)

處理指標輸入,並引發適用於手勢向下動作的 GestureRecognizer 事件, (由 GestureSettings 屬性所指定的手勢和操作) 。

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

ProcessInertia()

執行慣性計算,並引發各種慣性事件。

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

ProcessMouseWheelEvent(PointerPoint, Boolean, Boolean)

處理指標輸入,並引發適用於滑鼠滾輪動作的 GestureRecognizer 事件, (由 GestureSettings 屬性所指定的手勢和操作) 。

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

ProcessMoveEvents(IVector<PointerPoint>)

處理指標輸入,並引發適用於指標移動動作的 GestureRecognizer 事件, (由 GestureSettings 屬性所指定的手勢和操作) 。

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

ProcessUpEvent(PointerPoint)

處理指標輸入,並引發適用於手勢上指標動作的 GestureRecognizer 事件, (由 GestureSettings 屬性所指定的手勢和操作) 。

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

事件

CrossSliding

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

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

Dragging

當使用者使用滑鼠或手寫筆或手寫筆執行滑動或撥動手勢 (單一聯繫人) 時發生。

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

Holding

當使用者使用單一觸控、滑鼠、觸控板或手寫筆/手寫筆接觸) 執行按住手勢 (時發生。

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

ManipulationCompleted

當輸入點隨即提升,且所有後續動作 (轉譯、擴充或旋轉) 已結束時發生。

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

ManipulationInertiaStarting

發生於操作期間所有接觸點的增益,而且操作速度足以在輸入指標隨即隨即) 之後起始慣性行為 (轉、擴充或旋轉。

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

ManipulationStarted

發生於起始一或多個輸入點,而後續動作 (轉譯、展開或旋轉) 開始時。

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

ManipulationUpdated

在起始一或多個輸入點之後發生,後續動作 (轉譯、擴充或旋轉) 正在進行中。

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

RightTapped

無論輸入裝置為何,指標輸入都會解譯為右鍵手勢時發生。

範例包括:

  • 滑鼠右鍵或觸控板按鈕按兩下
  • 手寫筆筒按鈕按兩下
  • 觸控或手寫筆按住

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

Tapped

發生於指標輸入解譯為點選手勢時。

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

適用於