AbsoluteLayout.OnSizeRequest(Double, Double) Method

Definition

Caution

OnSizeRequest is obsolete as of version 2.2.0. Please use OnMeasure instead.

Called during the measure pass of a layout cycle to get the desired size of the AbsoluteLayout.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("OnSizeRequest is obsolete as of version 2.2.0. Please use OnMeasure instead.")]
protected override Xamarin.Forms.SizeRequest OnSizeRequest (double widthConstraint, double heightConstraint);
override this.OnSizeRequest : double * double -> Xamarin.Forms.SizeRequest

Parameters

widthConstraint
Double

The available width for the AbsoluteLayout to use.

heightConstraint
Double

The available height for the AbsoluteLayout to use.

Returns

A SizeRequest which contains the desired size of the AbsoluteLayout.

Attributes

Remarks

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

Applies to