102 references to TemplatedParent
PresentationFramework (81)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
141
(nodeParent != null && service.Root == nodeParent.
TemplatedParent
)))
MS\Internal\Data\ObjectRef.cs (1)
484
parent = cp.
TemplatedParent
as FrameworkElement;
MS\Internal\Documents\ContentHostHelper.cs (1)
171
if (fe.
TemplatedParent
!= null)
MS\Internal\FrameworkObject.cs (1)
154
return _fe.
TemplatedParent
;
MS\Internal\Helper.cs (2)
486
return fe.
TemplatedParent
;
1286
if (descendant != null && descendant.
TemplatedParent
== templatedParent)
System\Windows\Annotations\AnnotationHelper.cs (1)
1142
(parent != null && service.Root == parent.
TemplatedParent
)))
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
64
ScrollViewer sv = sb.
TemplatedParent
as ScrollViewer;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (1)
45
DependencyObject templatedParent = sv.
TemplatedParent
;
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (1)
69
DependencyObject templatedParent = tb.
TemplatedParent
;
System\Windows\Controls\AdornedElementPlaceholder.cs (3)
172
if (
TemplatedParent
== null)
190
if (
TemplatedParent
== null)
228
FrameworkElement templateParent = this.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\ContentControl.cs (2)
78
DependencyObject templatedParent = this.
TemplatedParent
;
285
if (
TemplatedParent
!= null && FrameworkObject.IsEffectiveAncestor(logicalParent, this))
System\Windows\Controls\ContentPresenter.cs (1)
457
if (
TemplatedParent
== null)
System\Windows\Controls\DataGridCellsPanel.cs (2)
2441
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
2444
return itemsPresenter.
TemplatedParent
as ItemsControl;
System\Windows\Controls\DataGridHelper.cs (2)
158
FrameworkElement parent = element.
TemplatedParent
as FrameworkElement;
168
parent = parent.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\FlowDocumentReader.cs (3)
997
if (fe != null && fe.
TemplatedParent
!= null)
999
focusedElement = fe.
TemplatedParent
;
1026
if (
TemplatedParent
!= null && newDocument != null && LogicalTreeHelper.GetParent(newDocument) != null)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1026
_mainSV =
TemplatedParent
as ScrollViewer;
1253
FrameworkElement fe = presenter.
TemplatedParent
as FrameworkElement;
1263
fe = fe.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\GridViewRowPresenter.cs (3)
446
_viewItem = this.
TemplatedParent
as FrameworkElement;
618
if ((parent =
TemplatedParent
as ContentControl) != null)
644
ContentControl parent =
TemplatedParent
as ContentControl;
System\Windows\Controls\ItemContainerGenerator.cs (1)
183
if (panel.
TemplatedParent
!= null)
System\Windows\Controls\ItemsControl.cs (3)
808
container = panel.
TemplatedParent
as ItemsControl;
842
container = ip.
TemplatedParent
;
848
container = panel.
TemplatedParent
;
System\Windows\Controls\ItemsPresenter.cs (3)
173
return panel.
TemplatedParent
as ItemsPresenter;
190
if (
TemplatedParent
== null)
209
DependencyObject templatedParent = this.
TemplatedParent
;
System\Windows\Controls\Menu.cs (1)
285
if ((element != null && (element == this || element.
TemplatedParent
== this)))
System\Windows\Controls\Page.cs (2)
693
while ((feParent != null) && (feParent.
TemplatedParent
!= null))
695
parent = feParent.
TemplatedParent
;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
684
DataGridColumnHeadersPresenter presenter = columnHeader.
TemplatedParent
as DataGridColumnHeadersPresenter;
794
DataGridColumnHeadersPresenter presenter = columnHeader.
TemplatedParent
as DataGridColumnHeadersPresenter;
System\Windows\Controls\Primitives\DocumentPageView.cs (2)
918
if (this.
TemplatedParent
is DocumentViewerBase)
920
hostViewer = (DocumentViewerBase)this.
TemplatedParent
;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
933
if (fe.
TemplatedParent
!= null)
982
if (fe.
TemplatedParent
!= null)
1157
if (fe != null && fe.
TemplatedParent
!= null)
1159
child = fe.
TemplatedParent
;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
309
ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(
TemplatedParent
);
System\Windows\Controls\Primitives\Popup.cs (2)
1334
return this.
TemplatedParent
== null;
2679
|| (this.
TemplatedParent
is MenuItem))
System\Windows\Controls\Primitives\ScrollBar.cs (1)
399
IInputElement target =
TemplatedParent
as IInputElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
722
ScrollViewer scrollContainer =
TemplatedParent
as ScrollViewer;
747
FrameworkElement templatedParent = scrollContainer.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\Primitives\TabPanel.cs (1)
529
TabControl tc =
TemplatedParent
as TabControl;
System\Windows\Controls\Primitives\TickBar.cs (1)
693
Slider parent =
TemplatedParent
as Slider;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (2)
203
return new UIElementCollection(this,
TemplatedParent
== null ? logicalParent : null);
223
get { return
TemplatedParent
as ToolBar; }
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
337
if (
TemplatedParent
is ToolBar && !HasNonDefaultValue(OrientationProperty))
527
get { return
TemplatedParent
as ToolBar; }
System\Windows\Controls\Primitives\Track.cs (2)
710
binding.Source = this.
TemplatedParent
;
724
RangeBase rangeBase =
TemplatedParent
as RangeBase;
System\Windows\Controls\ScrollViewer.cs (3)
928
Control templatedParentControl =
TemplatedParent
as Control;
1356
if (
TemplatedParent
!= null)
2599
Control templatedParentControl = scrollViewer != null ? scrollViewer.
TemplatedParent
as Control : null;
System\Windows\Controls\ToolBarTray.cs (1)
517
ToolBar toolBar = thumb.
TemplatedParent
as ToolBar;
System\windows\Documents\TextEditor.cs (1)
1277
if ((source is FrameworkElement) && ((FrameworkElement)source).
TemplatedParent
== this.UiScope)
System\windows\Documents\TextEditorMouse.cs (1)
803
if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).
TemplatedParent
== textEditor.UiScope)
System\Windows\Documents\TextPointerBase.cs (2)
891
templatedParent = ((FlowDocumentView)textView.RenderScope).
TemplatedParent
as Visual;
894
templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).
TemplatedParent
as Visual;
System\windows\Documents\TextSelection.cs (1)
2583
parent = ((FrameworkElement)element).
TemplatedParent
;
System\Windows\FrameworkElement.cs (5)
904
boundaryElement = fe.
TemplatedParent
;
2103
if (
TemplatedParent
!= null)
2105
FrameworkElement feTemplatedParent =
TemplatedParent
as FrameworkElement;
2110
StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate,
TemplatedParent
, dp, e, false /*invalidateOnlyContainer*/,
3006
templatedParent = fe.
TemplatedParent
;
System\Windows\Generated\FrameworkElement.cs (3)
491
templatedParent =
TemplatedParent
;
593
if(null ==
TemplatedParent
)
597
FrameworkElementFactory fefRoot = BroadcastEventHelper.GetFEFTreeRoot(
TemplatedParent
);
System\Windows\StyleHelper.cs (2)
2069
nextParent = feWalkNode.
TemplatedParent
;
2468
templatedParent = fe.
TemplatedParent
;
System\Windows\TreeWalkHelper.cs (1)
803
FrameworkElement templatedParent = (FrameworkElement)fe.
TemplatedParent
;
ReachFramework (1)
Serialization\VisualTreeFlattener.cs (1)
503
fe.
TemplatedParent
== null)
System.Windows.Controls.Ribbon (20)
Microsoft\Windows\Automation\Peers\RibbonTwoLineTextAutomationPeer.cs (1)
55
DependencyObject templatedParent = tlt.
TemplatedParent
;
Microsoft\Windows\Controls\Generated\TreeHelper.cs (1)
58
element = element.
TemplatedParent
as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (2)
437
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
440
return itemsPresenter.
TemplatedParent
as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
291
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
294
return itemsPresenter.
TemplatedParent
as RibbonTab;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (1)
64
get { return
TemplatedParent
as RibbonQuickAccessToolBar; }
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
305
get { return
TemplatedParent
as RibbonQuickAccessToolBar; }
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
309
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
312
return itemsPresenter.
TemplatedParent
as RibbonTabHeaderItemsControl;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (2)
184
if (popup.
TemplatedParent
is RibbonMenuItem)
188
else if (popup.
TemplatedParent
is RibbonMenuButton)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
78
RibbonGallery parentGallery = this.
TemplatedParent
as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (5)
1503
if (fe != null && fe.
TemplatedParent
!= null && !(fe.
TemplatedParent
is ContentPresenter))
1881
if (feOriginal.
TemplatedParent
== null ||
1882
feOriginal.
TemplatedParent
is ContentPresenter)
1888
TransferProperties(feOriginal.
TemplatedParent
as FrameworkElement, feClone, /*cloningForTemplatePart*/ true);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1403
if (source != null && (source == this || source.
TemplatedParent
== this))
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
308
ribbonGroup = popupParent.
TemplatedParent
as RibbonGroup;