VisualElement.Width 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 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.