ManipulationDelta::Translation Property

 

Gets or sets the linear motion of the manipulation.

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

public:
property Vector Translation {
	Vector get();
	private: void set(Vector value);
}

Property Value

Type: System.Windows::Vector

The linear motion of the manipulation in device-independent units (1/96th inch per unit).

The Translation property reports the way a manipulation is interpreted as moving horizontally and vertically on the screen.

The following example shows an event handler for the ManipulationDelta event. The example applies the Translation, Scale, and Rotation properties to move, resize, and rotate a Rectangle. This example is part of a larger example in Walkthrough: Creating Your First Touch Application.

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

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: