Xamarin.Forms Guides | Samples

Xamarin.Forms.VisualElement.OnMeasure Method

Method that is called when a layout measurement happens.

Syntax

protected virtual SizeRequest OnMeasure (Double widthConstraint, Double heightConstraint)

Parameters

widthConstraint
heightConstraint

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 2.0.0.0