5 implementations of IContentHost
PresentationFramework (5)
MS\Internal\Documents\UIElementIsland.cs (1)
18internal class UIElementIsland : ContainerVisual, IContentHost, IDisposable
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
25internal sealed class FlowDocumentPage : DocumentPage, IServiceProvider, IDisposable, IContentHost
MS\Internal\PtsHost\PageVisual.cs (1)
18internal class PageVisual : DrawingVisual, IContentHost
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
425private class AnnotatedDocumentPage : DocumentPage, IContentHost
System\Windows\Controls\TextBlock.cs (1)
47public class TextBlock : FrameworkElement, IContentHost, IAddChildInternal, IServiceProvider
89 references to IContentHost
PresentationCore (6)
System\Windows\UIElement.cs (6)
698IContentHost ich; 717internal void GetUIParentOrICH(out UIElement uiParent, out IContentHost ich) 724ich = v as IContentHost; 2052IContentHost contentHost = candidate as IContentHost; 3055IContentHost ich;
PresentationFramework (70)
MS\Internal\Documents\ContentHostHelper.cs (10)
36internal static IContentHost FindContentHost(ContentElement contentElement) 38IContentHost ich = null; 50if (parent is IContentHost) // TextBlock 52ich = (IContentHost)parent; 58else if (textContainer.TextView != null && textContainer.TextView.RenderScope is IContentHost) 61ich = (IContentHost)textContainer.TextView.RenderScope; 85private static IContentHost GetICHFromFlowDocument(TextElement contentElement, FlowDocument flowDocument) 87IContentHost ich = null; 100ich = VisualTreeHelper.GetChild(textView.RenderScope, 0) as IContentHost; 124ich = pageViews[i].DocumentPage.Visual as IContentHost;
MS\Internal\Documents\UIElementIsland.cs (8)
183/// <see cref="IContentHost.InputHitTest"/> 185IInputElement IContentHost.InputHitTest(Point point) 194/// <see cref="IContentHost.GetRectangles"/> 196ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child) 202/// <see cref="IContentHost.HostedElements"/> 204IEnumerator<IInputElement> IContentHost.HostedElements 218/// <see cref="IContentHost.OnChildDesiredSizeChanged"/> 220void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\FlowDocumentPage.cs (4)
1183IInputElement IContentHost.InputHitTest(Point point) 1196ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child) 1206IEnumerator<IInputElement> IContentHost.HostedElements 1220void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\PageVisual.cs (16)
106/// <see cref="IContentHost.InputHitTest"/> 108IInputElement IContentHost.InputHitTest(Point point) 110IContentHost host = _owner.Target as IContentHost; 119/// <see cref="IContentHost.GetRectangles"/> 121ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child) 123IContentHost host = _owner.Target as IContentHost; 132/// <see cref="IContentHost.HostedElements"/> 134IEnumerator<IInputElement> IContentHost.HostedElements 138IContentHost host = _owner.Target as IContentHost; 148/// <see cref="IContentHost.OnChildDesiredSizeChanged"/> 150void IContentHost.OnChildDesiredSizeChanged(UIElement child) 152IContentHost host = _owner.Target as IContentHost;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
434_basePage = basePage as IContentHost; 499private IContentHost _basePage;
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
1095IContentHost ich; 1291private IContentHost GetIContentHost() 1293IContentHost ich = null; 1296ich = VisualTreeHelper.GetChild(RenderScope, 0) as IContentHost;
System\Windows\Controls\PopupControlService.cs (1)
864IContentHost ichParent = null;
System\Windows\Controls\ScrollViewer.cs (1)
2475IContentHost contentHost = ContentHostHelper.FindContentHost(contentElement);
System\Windows\Controls\TextBlock.cs (4)
62IInputElement IContentHost.InputHitTest(Point point) 76ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child) 84IEnumerator<IInputElement> IContentHost.HostedElements 100void IContentHost.OnChildDesiredSizeChanged(UIElement child)
System\Windows\FrameworkElement.cs (1)
3981if (parentFE != null && parentFE is IContentHost)
System\Windows\Input\KeyboardNavigation.cs (19)
507public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 569IContentHost contentHost = ContentHost; 665private IContentHost ContentHost 690IContentHost contentHost = ContentHost; 745private IContentHost _contentHostParent; 755IContentHost ichParent = null; 759internal static UIElement GetParentUIElementFromContentElement(ContentElement ce, ref IContentHost ichParent) 764IContentHost ich = MS.Internal.Documents.ContentHostHelper.FindContentHost(ce); 874IContentHost parentICH = null; 1435if (visual is IContentHost && !(visual is MS.Internal.Documents.UIElementIsland)) 1450IContentHost ich = parent as IContentHost; 1508IContentHost ich = parent as IContentHost; 1623IContentHost ich = e as IContentHost; 1690IContentHost ich = e as IContentHost; 2401IContentHost parentICH = null;
ReachFramework (13)
Serialization\Manager\ReachSerializationUtils.cs (13)
772IContentHost contentHost = page as IContentHost; 798if (element is IContentHost) 801SerializeLinksForIContentHost((IContentHost)element, page); 820IContentHost contentHost = visual as IContentHost; 836private void SerializeLinksForIContentHost(IContentHost contentHost, Visual root) 846if (element is IContentHost) 849SerializeLinksForIContentHost((IContentHost)element, root); 860private void SerializeLinksInLogicalTree(DependencyObject dependencyObject, IContentHost contentHost, Visual root) 871if (element is IContentHost) 874SerializeLinksForIContentHost((IContentHost)element, root); 885private void SerializeLinkTargetForElement(IInputElement element, IContentHost contentHost, Visual root)