Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IContentHost Interface
Collapse the table of content
Expand the table of content

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.

  NameDescription
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.
Top

  NameDescription
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.
Top

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft