Xamarin.Forms.AbsoluteLayout.OnSizeRequest Method
Called during the measure pass of a layout cycle to get the desired size of the AbsoluteLayout.

Syntax

protected override SizeRequest OnSizeRequest (double widthConstraint, double heightConstraint)

Parameters

widthConstraint
The available width for the AbsoluteLayout to use.
heightConstraint
The available height for the AbsoluteLayout to use.

Returns

A Xamarin.Forms.SizeRequest which contains the desired size of the AbsoluteLayout.

Remarks

Application developers can override AbsoluteLayout.OnSizeRequest to change the default behavior thata is triggered when a child is removed. When doing so, it is recommended to call the base AbsoluteLayout.OnSizeRequest method and then modify the dimensions and locations of the children directly.

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