Manipulation 類別

定義

包含用於取得和更新操作相關資訊的方法。

public ref class Manipulation abstract sealed
public static class Manipulation
type Manipulation = class
Public Class Manipulation
繼承
Manipulation

備註

將觸控解譯為套用至物件的實體動作時,會發生操作。 在 WPF 中,操作事件會將輸入解譯為轉譯、展開或旋轉操作。 您通常會透過 上 UIElement定義的操作事件來與操作互動。 不過,類別 Manipulation 會定義可用來與操作互動的靜態方法。

如需操作的詳細資訊,請參閱 輸入概觀。 如需回應操作的應用程式範例,請參閱逐步解說 :建立您的第一個觸控應用程式

方法

AddManipulator(UIElement, IManipulator)

IManipulator 物件與指定的項目產生關聯。

CompleteManipulation(UIElement)

完成所指定項目上的作用中操作。 呼叫時,不會再追蹤操作輸入,而且所指定項目上的慣性會停止。

GetManipulationContainer(UIElement)

取得容器,這個容器會定義操作的座標。

GetManipulationMode(UIElement)

取得所指定項目的 ManipulationModes

GetManipulationPivot(UIElement)

傳回物件,描述如何在使用者輸入的一個點上發生旋轉。

IsManipulationActive(UIElement)

取得值,表示某個處理是否與指定的元素相關聯。

RemoveManipulator(UIElement, IManipulator)

移除指定的 IManipulator 物件和此項目之間的關聯。

SetManipulationContainer(UIElement, IInputElement)

設定項目,定義所指定項目的操作座標。

SetManipulationMode(UIElement, ManipulationModes)

設定所指定項目的操作模式。

SetManipulationParameter(UIElement, ManipulationParameters2D)

將參數加入至所指定項目的操作。

SetManipulationPivot(UIElement, ManipulationPivot)

設定所指定項目的單點操作樞紐。

StartInertia(UIElement)

在指定的項目上停止操作並啟動慣性。

適用於