Share via

VisualElement.HeightRequest Property


Gets or sets the desired height override of this element.

public double HeightRequest { get; set; }
member this.HeightRequest : double with get, set

Property Value


The height this element desires to be.


HeightRequest does not immediately change the Bounds of a VisualElement, however setting the HeightRequest will change the result of calls to GetSizeRequest, which will in turn modify the final size the element receives during a layout cycle.

Applies to