Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IContentHost Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This interface is implemented by layouts which host ContentElement.

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

public interface IContentHost

NameDescription
System_CAPS_pubpropertyHostedElements

Gets an enumeration containing all descendant ContentElement-derived classes, as well as all UIElement-derived classes that are a direct descendant of the IContentHost or one of its descendant ContentElement classes.

NameDescription
System_CAPS_pubmethodGetRectangles(ContentElement)

Returns a collection of bounding rectangles for a child element.

System_CAPS_pubmethodInputHitTest(Point)

Performs hit-testing for child elements.

System_CAPS_pubmethodOnChildDesiredSizeChanged(UIElement)

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft