83 references to TemplatedParent
PresentationFramework (81)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
150
(nodeParent != null && service.Root == nodeParent.
TemplatedParent
)))
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
494
parent = cp.
TemplatedParent
as FrameworkElement;
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
173
if (fe.
TemplatedParent
!= null)
src\Framework\MS\Internal\FrameworkObject.cs (1)
182
return _fe.
TemplatedParent
;
src\Framework\MS\Internal\Helper.cs (2)
495
return fe.
TemplatedParent
;
1302
if (descendant != null && descendant.
TemplatedParent
== templatedParent)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
1153
(parent != null && service.Root == parent.
TemplatedParent
)))
src\Framework\System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
60
ScrollViewer sv = sb.
TemplatedParent
as ScrollViewer;
src\Framework\System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (1)
42
DependencyObject templatedParent = sv.
TemplatedParent
;
src\Framework\System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (1)
70
DependencyObject templatedParent = tb.
TemplatedParent
;
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (3)
178
if (
TemplatedParent
== null)
196
if (
TemplatedParent
== null)
234
FrameworkElement templateParent = this.
TemplatedParent
as FrameworkElement;
src\Framework\System\Windows\Controls\ContentControl.cs (2)
74
DependencyObject templatedParent = this.
TemplatedParent
;
281
if (
TemplatedParent
!= null && FrameworkObject.IsEffectiveAncestor(logicalParent, this))
src\Framework\System\Windows\Controls\ContentPresenter.cs (1)
459
if (
TemplatedParent
== null)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (2)
2445
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
2448
return itemsPresenter.
TemplatedParent
as ItemsControl;
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
159
FrameworkElement parent = element.
TemplatedParent
as FrameworkElement;
169
parent = parent.
TemplatedParent
as FrameworkElement;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (3)
1003
if (fe != null && fe.
TemplatedParent
!= null)
1005
focusedElement = fe.
TemplatedParent
;
1032
if (
TemplatedParent
!= null && newDocument != null && LogicalTreeHelper.GetParent(newDocument) != null)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1028
_mainSV =
TemplatedParent
as ScrollViewer;
1256
FrameworkElement fe = presenter.
TemplatedParent
as FrameworkElement;
1266
fe = fe.
TemplatedParent
as FrameworkElement;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
449
_viewItem = this.
TemplatedParent
as FrameworkElement;
621
if ((parent =
TemplatedParent
as ContentControl) != null)
647
ContentControl parent =
TemplatedParent
as ContentControl;
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
185
if (panel.
TemplatedParent
!= null)
src\Framework\System\Windows\Controls\ItemsControl.cs (3)
810
container = panel.
TemplatedParent
as ItemsControl;
844
container = ip.
TemplatedParent
;
850
container = panel.
TemplatedParent
;
src\Framework\System\Windows\Controls\ItemsPresenter.cs (3)
175
return panel.
TemplatedParent
as ItemsPresenter;
192
if (
TemplatedParent
== null)
211
DependencyObject templatedParent = this.
TemplatedParent
;
src\Framework\System\Windows\Controls\Menu.cs (1)
306
if ((element != null && (element == this || element.
TemplatedParent
== this)))
src\Framework\System\Windows\Controls\Page.cs (2)
701
while ((feParent != null) && (feParent.
TemplatedParent
!= null))
703
parent = feParent.
TemplatedParent
;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
685
DataGridColumnHeadersPresenter presenter = columnHeader.
TemplatedParent
as DataGridColumnHeadersPresenter;
795
DataGridColumnHeadersPresenter presenter = columnHeader.
TemplatedParent
as DataGridColumnHeadersPresenter;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (2)
927
if (this.
TemplatedParent
is DocumentViewerBase)
929
hostViewer = (DocumentViewerBase)this.
TemplatedParent
;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
945
if (fe.
TemplatedParent
!= null)
994
if (fe.
TemplatedParent
!= null)
1169
if (fe != null && fe.
TemplatedParent
!= null)
1171
child = fe.
TemplatedParent
;
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
310
ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(
TemplatedParent
);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
1339
return this.
TemplatedParent
== null;
2687
|| (this.
TemplatedParent
is MenuItem))
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
404
IInputElement target =
TemplatedParent
as IInputElement;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
728
ScrollViewer scrollContainer =
TemplatedParent
as ScrollViewer;
753
FrameworkElement templatedParent = scrollContainer.
TemplatedParent
as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (1)
530
TabControl tc =
TemplatedParent
as TabControl;
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (1)
694
Slider parent =
TemplatedParent
as Slider;
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (2)
204
return new UIElementCollection(this,
TemplatedParent
== null ? logicalParent : null);
224
get { return
TemplatedParent
as ToolBar; }
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
338
if (
TemplatedParent
is ToolBar && !HasNonDefaultValue(OrientationProperty))
528
get { return
TemplatedParent
as ToolBar; }
src\Framework\System\Windows\Controls\Primitives\Track.cs (2)
712
binding.Source = this.
TemplatedParent
;
726
RangeBase rangeBase =
TemplatedParent
as RangeBase;
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
955
Control templatedParentControl =
TemplatedParent
as Control;
1384
if (
TemplatedParent
!= null)
2639
Control templatedParentControl = scrollViewer != null ? scrollViewer.
TemplatedParent
as Control : null;
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
528
ToolBar toolBar = thumb.
TemplatedParent
as ToolBar;
src\Framework\System\windows\Documents\TextEditor.cs (1)
1304
if ((source is FrameworkElement) && ((FrameworkElement)source).
TemplatedParent
== this.UiScope)
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
804
if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).
TemplatedParent
== textEditor.UiScope)
src\Framework\System\Windows\Documents\TextPointerBase.cs (2)
896
templatedParent = ((FlowDocumentView)textView.RenderScope).
TemplatedParent
as Visual;
899
templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).
TemplatedParent
as Visual;
src\Framework\System\windows\Documents\TextSelection.cs (1)
2596
parent = ((FrameworkElement)element).
TemplatedParent
;
src\Framework\System\Windows\FrameworkElement.cs (5)
903
boundaryElement = fe.
TemplatedParent
;
2102
if (
TemplatedParent
!= null)
2104
FrameworkElement feTemplatedParent =
TemplatedParent
as FrameworkElement;
2109
StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate,
TemplatedParent
, dp, e, false /*invalidateOnlyContainer*/,
3004
templatedParent = fe.
TemplatedParent
;
src\Framework\System\Windows\Generated\FrameworkElement.cs (3)
502
templatedParent =
TemplatedParent
;
604
if(null ==
TemplatedParent
)
608
FrameworkElementFactory fefRoot = BroadcastEventHelper.GetFEFTreeRoot(
TemplatedParent
);
src\Framework\System\Windows\StyleHelper.cs (2)
2069
nextParent = feWalkNode.
TemplatedParent
;
2468
templatedParent = fe.
TemplatedParent
;
src\Framework\System\Windows\TreeWalkHelper.cs (1)
798
FrameworkElement templatedParent = (FrameworkElement)fe.
TemplatedParent
;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (2)
548
window = element.
TemplatedParent
as ExtensionWindow;
557
surface = window.
TemplatedParent
as ExtensionSurface;