X Property (TranslateTransform)

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

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

Property Value


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

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.

The local 0,0 for an object can be offset on a Canvas using Canvas.Left and Canvas.Top, but this does not count as a transform; the object retains its own local 0,0 in this case for transform purposes. For details on this concept, see Object Layout in Silverlight.

Applies To


See Also

Silverlight Transforms Overview
Object Layout in Silverlight