ManipulationStartingEventArgs.Pivot Property

.NET Framework 4.6 and 4.5

Gets or sets an object that describes the pivot for a single-point manipulation.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

member Pivot : ManipulationPivot with get, set

Property Value

Type: System.Windows.Input.ManipulationPivot
An object that describes the pivot for a single-point manipulation.

When you set the Pivot property, the manipulation will contain rotation data when the user uses one finger during a manipulation. This is to simulate real-world situations where you can use one finger to rotate an object, such as a piece of paper on a table. If the Pivot is a null reference (Nothing in Visual Basic), the user must use two fingers to cause rotation.

For more information about manipulations, see the Input Overview. For an example of an application that responds to manipulations, see Walkthrough: Creating Your First Touch Application.

The following example shows an event handler for the ManipulationStarting event and sets the ManipulationStartingEventArgs.Pivot property. To test this example, follow the steps in Walkthrough: Creating Your First Touch Application and replace the code in step 4 with this code.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft