X (TranslateTransform)


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

<object X="Double"  .../>
value = object.X
object.X = value

Type: Double

The distance to translate (move) an object along the x-axis, in pixels.

This property is read/write. The default value is 0.

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

You can also offset the local 0,0 for an object on a Canvas by using the Canvas.Left and Canvas.Top properties. However, this does not count as a transform because the object retains its own local 0,0 for transform purposes.

Community Additions