Share via


VisualElement.X Property

Definition

Gets the current X position of this element in device-independent units. This is a read-only bindable property.

public:
 property double X { double get(); };
public double X { get; }
member this.X : double
Public ReadOnly Property X As Double

Property Value

The X coordinate of the element's position in device-independent units (DIUs).

Remarks

The position of an element is set during layout.

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