#751 – Indicating which Touch Manipulation Modes You Support
February 7, 2013 Leave a comment
When you support touch manipulation events, you can choose which types of touch manipulation to support for an element. The modes include:
- Translation (in X, Y, or both)
You indicate which modes you want to support within the ManipulationStarting event handler, setting the ManipulationStartingEventArgs.Mode property. You can set this property to some combination of :
When you enable a mode, the ManipulationDelta event will fire when a user manipulates the element using touch, and will include data for that style of manipulation. When a manipulation mode isn’t supported, the ManipulationDelta event will not fire for that mode. It may fire for other manipulation actions, but will not include data for modes that are disabled.
The mode values listed above can be combined using the OR (|) operator.
// Support translation and scaling e.Mode = ManipulationModes.Translate | ManipulationModes.Scale;