语言

Manipulation 类

定义

包含用于获取和更新有关操作的信息的方法。

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

注解

当触摸被解释为应用于对象的物理操作时,将发生操作。 在 WPF 中,操作事件将输入解释为平移、缩放或旋转操作。 通常通过对上 UIElement定义的操作事件与操作进行交互。 但是,该 Manipulation 类定义可用于与操作交互的静态方法。

有关操作的详细信息,请参阅 输入概述。 有关响应操作的应用程序的示例,请参阅 演练:创建第一个 Touch 应用程序。

方法

名称 说明
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)

停止操作,并在指定元素上开始惯性。

适用于