다음을 통해 공유


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
System.Double

사용할 StackLayout에 사용할 수 있는 너비입니다.

heightConstraint
System.Double

사용할 StackLayout에 사용할 수 있는 높이입니다.

반환

StackLayout의 원하는 크기를 포함하는 SizeRequest입니다.

특성
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

설명

이 메서드의 결과는 방향 축을 따라 자식의 원하는 모든 크기의 합계와 비 방향 축을 따라 최대값이 됩니다.

적용 대상