Share via


VisualElement.OnMeasure(Double, Double) Method

Definition

Method that is called when a layout measurement happens.

protected virtual Xamarin.Forms.SizeRequest OnMeasure (double widthConstraint, double heightConstraint);
abstract member OnMeasure : double * double -> Xamarin.Forms.SizeRequest
override this.OnMeasure : double * double -> Xamarin.Forms.SizeRequest

Parameters

widthConstraint
System.Double

The width constraint to request.

heightConstraint
System.Double

The height constraint to request.

Returns

Applies to