Поделиться через


X (TranslateTransform)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Property 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.

Managed Equivalent

X

Remarks

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.

Applies To

TranslateTransform