Windows Dev Center

ManipulationModes enumeration

Specifies how a target UI element interprets manipulation events. This enumeration is flagwise, so you can set multiple modes for the ManipulationMode property.

Note  Direct Manipulation defines a manipulation as the scrolling or zooming of some part of the application UI.

Syntax


public enum ManipulationModes

Members

The ManipulationModes enumeration has these members.

MemberValueDescription
None0

Do not present graphic interaction with manipulation events.

TranslateX1

Permit manipulation actions that translate the target on the X axis.

TranslateY2

Permit manipulation actions that translate the target on the Y axis.

TranslateRailsX4

Permit manipulation actions that translate the target on the X axis but using a rails mode.

TranslateRailsY8

Permit manipulation actions that translate the target on the Y axis but using a rails mode.

Rotate16

Permit manipulation actions that rotate the target.

Scale32

Permit manipulation actions that scale the target.

TranslateInertia64

Apply inertia to translate actions.

RotateInertia128

Apply inertia to rotate actions.

ScaleInertia256

Apply inertia to scale actions.

All65535

Enable all manipulation interaction modes except those supported through Direct Manipulation

System65536

Enable system-driven touch interactions supported through Direct Manipulation.

Remarks

This enumeration provides the value for the UIElement.ManipulationMode property. By setting this property you can enable app code handling for manipulation events such as ManipulationStarted. You must set the ManipulationMode to a value other than System or None to enable handling the events from that element. For more info on manipulations, see Quickstart: Touch input.

Value enforcement for possible combinations is documented in the Remarks for the UIElement.ManipulationMode property.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Input
Windows::UI::Xaml::Input [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Input
Windows::UI::Xaml::Input [C++]

Metadata

Windows.winmd

Attributes

[Flags()]
[Version(0x06020000)]
[WebHostHidden()]

See also

ManipulationMode
Quickstart: Touch input

 

 

Show:
© 2015 Microsoft