StackLayout.OnSizeRequest(Double, Double) メソッド

定義

注意事項

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

このメソッドは、StackLayout の目的のサイズを取得するために、レイアウト サイクルの測定パス中に呼び出されます。

[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
Double

StackLayout を使用する場合に設定できる幅。

heightConstraint
Double

StackLayout を使用する場合に設定できる高さ。

戻り値

StackLayout の必要なサイズが含まれる SizeRequest

属性

注釈

このメソッドの結果は、向き軸に沿った子のすべての必要なサイズと、非方向軸に沿った最大値の合計になります。

適用対象