Sdílet prostřednictvím


Image.OnSizeRequest(Double, Double) Method

Definition

Caution

OnSizeRequest is obsolete as of version 2.2.0. Please use OnMeasure instead.

Invoked when the layotu cycle request the element desired size.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("OnSizeRequest is obsolete as of version 2.2.0. Please use OnMeasure instead.")]
protected override Xamarin.Forms.SizeRequest OnSizeRequest (double widthConstraint, double heightConstraint);
override this.OnSizeRequest : double * double -> Xamarin.Forms.SizeRequest

Parameters

widthConstraint
System.Double

The available width.

heightConstraint
System.Double

The available height.

Returns

Attributes
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

Remarks

overridden for Image.

Applies to