이 설명서는 보관되지만 유지 되지 않습니다.

UIElement.OnChildDesiredSizeChanged 메서드

Supports layout behavior when a child element is resized.

네임스페이스: System.Windows
어셈블리: PresentationCore(presentationcore.dll)

protected virtual void OnChildDesiredSizeChanged (
	UIElement child
)
protected void OnChildDesiredSizeChanged (
	UIElement child
)
protected function OnChildDesiredSizeChanged (
	child : UIElement
)
XAML에서 메서드를 사용할 수 없습니다.

매개 변수

child

The child element that is being resized.

This method is typically not called by your application code. It is exposed so that derived element classes can make further checks on their own possibly invalid layout state. Classes could also attempt optimizations to minimize the processing time for a layout pass based on size changes to child elements. An example derived element class that implements OnChildDesiredSizeChanged is the Grid control.

상속자 참고 사항: The OnChildDesiredSizeChanged method has the default implementation of calling InvalidateMeasure on itself. A typical implementation would be: do whatever optimization your own element supports, and then typically call base OnChildDesiredSizeChanged from at least one of the code branches (the one that indicated "dirty" state per your own measure caching logic). This method is only called in the layout processing if it was the child itself that originated the size changes. Otherwise, if the parent element initiates the Measure pass, according to the layout system rules, the parent is recalculating layout already. The layout system processes layout in the order of child-to-parent, so no return to parent element sizing from the child element layout calls is necessary.

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원
표시: