共用方式為


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

適用於