VisualElement.X Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.