Element. Measure(Double, Double, MeasureFlags) 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.
Returns the minimum size that a visual element needs in order to be displayed on the device.
public Xamarin.Forms.SizeRequest Measure (double widthConstraint, double heightConstraint, Xamarin.Forms.MeasureFlags flags = Xamarin.Forms.MeasureFlags.None);
member this.Measure : double * double * Xamarin.Forms.MeasureFlags -> Xamarin.Forms.SizeRequest
The suggested maximum width constraint for the visual element to render.
The suggested maximum height constraint for the visual element to render.
A value that controls whether margins are included in the returned size.
The minimum size that a visual element needs in order to be displayed on the device.
If the minimum sized that the visual element needs in order to be displayed on the device is larger than can be accommodated by
heightConstraint, the return value may represent a rectangle that is larger in either or both of those parameters.