5 implementations of IContentHost
PresentationFramework (5)
MS\Internal\Documents\UIElementIsland.cs (1)
20
internal class UIElementIsland : ContainerVisual,
IContentHost
, IDisposable
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
33
internal sealed class FlowDocumentPage : DocumentPage, IServiceProvider, IDisposable,
IContentHost
MS\Internal\PtsHost\PageVisual.cs (1)
23
internal class PageVisual : DrawingVisual,
IContentHost
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
430
private class AnnotatedDocumentPage : DocumentPage,
IContentHost
System\Windows\Controls\TextBlock.cs (1)
57
public class TextBlock : FrameworkElement,
IContentHost
, IAddChildInternal, IServiceProvider
89 references to IContentHost
PresentationCore (6)
System\Windows\UIElement.cs (6)
703
IContentHost
ich;
722
internal void GetUIParentOrICH(out UIElement uiParent, out
IContentHost
ich)
729
ich = v as
IContentHost
;
2057
IContentHost
contentHost = candidate as
IContentHost
;
3060
IContentHost
ich;
PresentationFramework (70)
MS\Internal\Documents\ContentHostHelper.cs (10)
39
internal static
IContentHost
FindContentHost(ContentElement contentElement)
41
IContentHost
ich = null;
53
if (parent is
IContentHost
) // TextBlock
55
ich = (
IContentHost
)parent;
61
else if (textContainer.TextView != null && textContainer.TextView.RenderScope is
IContentHost
)
64
ich = (
IContentHost
)textContainer.TextView.RenderScope;
88
private static
IContentHost
GetICHFromFlowDocument(TextElement contentElement, FlowDocument flowDocument)
90
IContentHost
ich = null;
103
ich = VisualTreeHelper.GetChild(textView.RenderScope, 0) as
IContentHost
;
127
ich = pageViews[i].DocumentPage.Visual as
IContentHost
;
MS\Internal\Documents\UIElementIsland.cs (8)
185
/// <see cref="
IContentHost
.InputHitTest"/>
187
IInputElement
IContentHost
.InputHitTest(Point point)
196
/// <see cref="
IContentHost
.GetRectangles"/>
198
ReadOnlyCollection<Rect>
IContentHost
.GetRectangles(ContentElement child)
204
/// <see cref="
IContentHost
.HostedElements"/>
206
IEnumerator<IInputElement>
IContentHost
.HostedElements
220
/// <see cref="
IContentHost
.OnChildDesiredSizeChanged"/>
222
void
IContentHost
.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\FlowDocumentPage.cs (4)
1191
IInputElement
IContentHost
.InputHitTest(Point point)
1204
ReadOnlyCollection<Rect>
IContentHost
.GetRectangles(ContentElement child)
1214
IEnumerator<IInputElement>
IContentHost
.HostedElements
1228
void
IContentHost
.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\PageVisual.cs (16)
111
/// <see cref="
IContentHost
.InputHitTest"/>
113
IInputElement
IContentHost
.InputHitTest(Point point)
115
IContentHost
host = _owner.Target as
IContentHost
;
124
/// <see cref="
IContentHost
.GetRectangles"/>
126
ReadOnlyCollection<Rect>
IContentHost
.GetRectangles(ContentElement child)
128
IContentHost
host = _owner.Target as
IContentHost
;
137
/// <see cref="
IContentHost
.HostedElements"/>
139
IEnumerator<IInputElement>
IContentHost
.HostedElements
143
IContentHost
host = _owner.Target as
IContentHost
;
153
/// <see cref="
IContentHost
.OnChildDesiredSizeChanged"/>
155
void
IContentHost
.OnChildDesiredSizeChanged(UIElement child)
157
IContentHost
host = _owner.Target as
IContentHost
;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
439
_basePage = basePage as
IContentHost
;
504
private
IContentHost
_basePage;
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
1098
IContentHost
ich;
1294
private
IContentHost
GetIContentHost()
1296
IContentHost
ich = null;
1299
ich = VisualTreeHelper.GetChild(RenderScope, 0) as
IContentHost
;
System\Windows\Controls\PopupControlService.cs (1)
874
IContentHost
ichParent = null;
System\Windows\Controls\ScrollViewer.cs (1)
2483
IContentHost
contentHost = ContentHostHelper.FindContentHost(contentElement);
System\Windows\Controls\TextBlock.cs (4)
72
IInputElement
IContentHost
.InputHitTest(Point point)
86
ReadOnlyCollection<Rect>
IContentHost
.GetRectangles(ContentElement child)
94
IEnumerator<IInputElement>
IContentHost
.HostedElements
110
void
IContentHost
.OnChildDesiredSizeChanged(UIElement child)
System\Windows\FrameworkElement.cs (1)
3992
if (parentFE != null && parentFE is
IContentHost
)
System\Windows\Input\KeyboardNavigation.cs (19)
517
public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent,
IContentHost
contentHostParent, Style focusVisualStyle)
579
IContentHost
contentHost = ContentHost;
675
private
IContentHost
ContentHost
700
IContentHost
contentHost = ContentHost;
755
private
IContentHost
_contentHostParent;
765
IContentHost
ichParent = null;
769
internal static UIElement GetParentUIElementFromContentElement(ContentElement ce, ref
IContentHost
ichParent)
774
IContentHost
ich = MS.Internal.Documents.ContentHostHelper.FindContentHost(ce);
884
IContentHost
parentICH = null;
1445
if (visual is
IContentHost
&& !(visual is MS.Internal.Documents.UIElementIsland))
1460
IContentHost
ich = parent as
IContentHost
;
1518
IContentHost
ich = parent as
IContentHost
;
1633
IContentHost
ich = e as
IContentHost
;
1700
IContentHost
ich = e as
IContentHost
;
2411
IContentHost
parentICH = null;
ReachFramework (13)
Serialization\Manager\ReachSerializationUtils.cs (13)
782
IContentHost
contentHost = page as
IContentHost
;
808
if (element is
IContentHost
)
811
SerializeLinksForIContentHost((
IContentHost
)element, page);
830
IContentHost
contentHost = visual as
IContentHost
;
846
private void SerializeLinksForIContentHost(
IContentHost
contentHost, Visual root)
856
if (element is
IContentHost
)
859
SerializeLinksForIContentHost((
IContentHost
)element, root);
870
private void SerializeLinksInLogicalTree(DependencyObject dependencyObject,
IContentHost
contentHost, Visual root)
881
if (element is
IContentHost
)
884
SerializeLinksForIContentHost((
IContentHost
)element, root);
895
private void SerializeLinkTargetForElement(IInputElement element,
IContentHost
contentHost, Visual root)