This documentation is archived and is not being maintained.

IContentHost.OnChildDesiredSizeChanged Method

Called when a UIElement-derived class which is hosted by a IContentHost changes its DesiredSize.

Namespace:  System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

void OnChildDesiredSizeChanged(
	UIElement child
You cannot use methods in XAML.


Type: System.Windows.UIElement

Child element whose DesiredSize has changed


If child is null.


If child is not a direct descendant (i.e. child must be a child of the IContentHost or a ContentElement which is a direct descendant of the IContentHost).

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0