IContentHost Interface

This interface is implemented by layouts which host ContentElement.

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

Public Interface IContentHost

The IContentHost type exposes the following members.

Public propertyHostedElementsGets 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.

Public methodGetRectanglesReturns a collection of bounding rectangles for a child element.
Public methodInputHitTestPerforms hit-testing for child elements.
Public methodOnChildDesiredSizeChanged Called when a UIElement-derived class which is hosted by a IContentHost changes its DesiredSize.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft