Share via


VisualElement.TranslationY Property

Definition

Gets or sets the Y translation delta of the element in device-independent units. This is a bindable property.

public:
 property double TranslationY { double get(); void set(double value); };
public double TranslationY { get; set; }
member this.TranslationY : double with get, set
Public Property TranslationY As Double

Property Value

The Y translation offset in device-independent units (DIUs).

Remarks

Translation is applied post layout. It is particularly good for applying animations. Translating an element outside the bounds of its parent container may prevent inputs from working.

Device-independent units (DIUs) provide a consistent unit of measurement across different screen densities. One device-independent unit equals one pixel on a 96-DPI display.

Applies to