Share via


VisualElement.MaximumHeightRequest Property

Definition

Gets or sets the maximum height the element will request during layout in device-independent units. This is a bindable property.

public:
 property double MaximumHeightRequest { double get(); void set(double value); };
public double MaximumHeightRequest { get; set; }
member this.MaximumHeightRequest : double with get, set
Public Property MaximumHeightRequest As Double

Property Value

The maximum height in device-independent units (DIUs). The default is PositiveInfinity.

Remarks

The default value is PositiveInfinity.

MaximumHeightRequest is used to ensure that the element has no more than the specified height 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