Visual On Size Request(Double, Double) Element.
On Size Request(Double, Double)
This API is now obsolete.
This method is called during the measure pass of a layout cycle to get the desired size of an element.
[System.Obsolete("OnSizeRequest is obsolete as of version 2.2.0. Please use OnMeasure instead.")] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] protected virtual Xamarin.Forms.SizeRequest OnSizeRequest (double widthConstraint, double heightConstraint);
abstract member OnSizeRequest : double * double -> Xamarin.Forms.SizeRequest override this.OnSizeRequest : double * double -> Xamarin.Forms.SizeRequest
The results of this method will be (-1, -1) if the element has not yet been realized with a platform specific backing control. Overriding this method does not require a call to the base class so long as a valid SizeRequest is returned.
Send feedback about: