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

适用于