Share via


VisualElement.Width Property

Definition

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

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

Property Value

The width of the element in device-independent units (DIUs).

Remarks

The width value of an element is set during the layout cycle.

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