共用方式為


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

適用於