Get Size Request(Double, Double) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
OnSizeRequest is obsolete as of version 2.2.0. Please use OnMeasure instead.
Returns the SizeRequest of the Layout. Calling this method begins the measure pass of a layout cycle.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] [System.Obsolete("OnSizeRequest is obsolete as of version 2.2.0. Please use OnMeasure instead.")] public override sealed Xamarin.Forms.SizeRequest GetSizeRequest (double widthConstraint, double heightConstraint);
override this.GetSizeRequest : double * double -> Xamarin.Forms.SizeRequest
The available width that a parent Layout can allocate to a child. Value will be between 0 and double.PositiveInfinity.
The available height that a parent Layout can allocate to a child. Value will be between 0 and double.PositiveInfinity.
A SizeRequest which contains a requested size and a minimum size.
Calling GetSizeRequest causes a measure pass to occur for the subtree of elements it is called on. It is ideal to only call GetSizeRequest when needed as excessive calls can negatively impact the performance of the app. Overriding GetSizeRequest should only be done if the developer wants to ignore Width/HeightRequest. More likely a subclass would wish to override OnSizeRequest(Double, Double).