StackLayout.OnSizeRequest(Double, Double) StackLayout.OnSizeRequest(Double, Double) Method

Definition

Warning

This API is now obsolete.

This method is called during the measure pass of a layout cycle to get the desired size of the StackLayout.

[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 Double

The available width for the StackLayout to use.

heightConstraint
Double Double

The available height for the StackLayout to use.

Returns

A SizeRequest which contains the desired size of the StackLayout.

Remarks

The results of this method will be a sum of all the desired sizes of its children along the orientation axis, and the maximum along the non-orientation axis.

Applies to