Share via


VisualElement.Height Property

Definition

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

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

Property Value

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

Remarks

The height 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