Share via


AbsoluteLayout.OnSizeRequest(Double, Double) 메서드

정의

주의

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

AbsoluteLayout의 원하는 크기를 가져오도록 레이아웃 주기의 측정 단계 도중에 호출됩니다.

[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

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

heightConstraint
System.Double

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

반환

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

특성
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

설명

애플리케이션 개발자는 자식이 제거될 때 트리거되는 기본 동작을 변경하도록 재정 OnSizeRequest(Double, Double) 의할 수 있습니다. 이렇게 할 때 기본 OnSizeRequest(Double, Double) 메서드를 호출한 다음 자식의 차원과 위치를 직접 수정하는 것이 좋습니다.

적용 대상