ContentPresenter.OnSizeRequest(Double, Double) 方法

定义

注意

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

提出大小请求时调用的方法。

[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

参数

widthConstraint
System.Double

大小请求的宽度约束。

heightConstraint
System.Double

大小请求的宽度约束。

返回

属性
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

适用于