BoxView.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

适用于