Manipulation 類別

定義

包含用於取得和更新操作相關資訊的方法。Contains methods to get and update information about a manipulation.

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

備註

當觸控被視為套用至物件的實體動作時, 就會進行操作。A manipulation occurs when touch is interpreted as a physical action that is applied to an object. WPFWPF 中,操作事件會將輸入解譯為平移、擴充或旋轉操作。In WPFWPF, manipulation events interpret input as a translation, expansion, or rotation manipulation. 您通常會透過在上UIElement定義的操作事件來與操作互動。You usually interact with manipulations through the manipulation events that are defined on the UIElement. 不過, Manipulation類別會定義您可以用來與操作互動的靜態方法。However, the Manipulation class defines static methods that you can use to interact with manipulations.

如需操作的詳細資訊, 請參閱輸入總覽For more information about manipulations, see Input Overview. 如需回應操作的應用程式範例, 請參閱逐步解說:建立您的第一個觸控應用程式。For an example of an application that responds to manipulations, see Walkthrough: Creating Your First Touch Application.

方法

AddManipulator(UIElement, IManipulator)

IManipulator 物件與指定的項目產生關聯。Associates a IManipulator object with the specified element.

CompleteManipulation(UIElement)

完成所指定項目上的作用中操作。Completes the active manipulation on the specified element. 呼叫時,不會再追蹤操作輸入,而且所指定項目上的慣性會停止。When called, manipulation input is no longer tracked and inertia on the specified element stops.

GetManipulationContainer(UIElement)

取得容器,這個容器會定義操作的座標。Gets the container that defines the coordinates for the manipulation.

GetManipulationMode(UIElement)

取得所指定項目的 ManipulationModesGets the ManipulationModes for the specified element.

GetManipulationPivot(UIElement)

傳回物件,描述如何在使用者輸入的一個點上發生旋轉。Returns an object that describes how a rotation occurs with one point of user input.

IsManipulationActive(UIElement)

取得值,表示某個處理是否與指定的元素相關聯。Gets a value that indicates whether a manipulation is associated with the specified element.

RemoveManipulator(UIElement, IManipulator)

移除指定的 IManipulator 物件和此項目之間的關聯。Removes the association between the specified IManipulator object and the element.

SetManipulationContainer(UIElement, IInputElement)

設定項目,定義所指定項目的操作座標。Sets the element that defines the coordinates for the manipulation of the specified element.

SetManipulationMode(UIElement, ManipulationModes)

設定所指定項目的操作模式。Sets the mode of manipulation for the specified element.

SetManipulationParameter(UIElement, ManipulationParameters2D)

將參數加入至所指定項目的操作。Adds parameters to the manipulation of the specified element.

SetManipulationPivot(UIElement, ManipulationPivot)

設定所指定項目的單點操作樞紐。Sets the pivot of the single-point manipulation of the specified element.

StartInertia(UIElement)

在指定的項目上停止操作並啟動慣性。Stops the manipulation and begins inertia on the specified element.

適用於