Szerkesztés

Megosztás a következőn keresztül:


Manipulation Class

Definition

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
Inheritance
Manipulation

Remarks

A manipulation occurs when touch is interpreted as a physical action that is applied to an object. In WPF, manipulation events interpret input as a translation, expansion, or rotation manipulation. You usually interact with manipulations through the manipulation events that are defined on the UIElement. 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.

Methods

AddManipulator(UIElement, 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)

Gets 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)

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.

Applies to