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