X Property
Collapse the table of content
Expand the table of content

TranslateTransform.X Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the distance to translate along the x-axis.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public double X { get; set; }
<TranslateTransform X="double"/>

Property Value

Type: System.Double
The distance to translate (move) an object along the x-axis, in pixels.
This property is read/write. The default is 0.

Dependency property identifier field: XProperty

Negative values move an object to the left; positive values move an object to the right.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft