Y (TranslateTransform)

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

Gets or sets the distance to translate (move) an object along the y-axis.

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

Property Value

Type: Double

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

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

Managed Equivalent

Y

Remarks

Negative values move an object up; positive values move an object down.

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