Xamarin.Forms Guides | Samples

Xamarin.Forms.VisualElement.HeightRequest Property

Gets or sets the desired height override of this element.

Syntax

public Double HeightRequest { get; set; }

Value

The height this element desires to be.

Remarks

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.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0