102 references to TemplatedParent
PresentationFramework (81)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
132
(nodeParent != null && service.Root == nodeParent.
TemplatedParent
)))
MS\Internal\Data\ObjectRef.cs (1)
478
parent = cp.
TemplatedParent
as FrameworkElement;
MS\Internal\Documents\ContentHostHelper.cs (1)
168
if (fe.
TemplatedParent
!= null)
MS\Internal\FrameworkObject.cs (1)
151
return _fe.
TemplatedParent
;
MS\Internal\Helper.cs (2)
477
return fe.
TemplatedParent
;
1277
if (descendant != null && descendant.
TemplatedParent
== templatedParent)
System\Windows\Annotations\AnnotationHelper.cs (1)
1130
(parent != null && service.Root == parent.
TemplatedParent
)))
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
58
ScrollViewer sv = sb.
TemplatedParent
as ScrollViewer;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (1)
37
DependencyObject templatedParent = sv.
TemplatedParent
;
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (1)
67
DependencyObject templatedParent = tb.
TemplatedParent
;
System\Windows\Controls\AdornedElementPlaceholder.cs (3)
165
if (
TemplatedParent
== null)
183
if (
TemplatedParent
== null)
221
FrameworkElement templateParent = this.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\ContentControl.cs (2)
69
DependencyObject templatedParent = this.
TemplatedParent
;
276
if (
TemplatedParent
!= null && FrameworkObject.IsEffectiveAncestor(logicalParent, this))
System\Windows\Controls\ContentPresenter.cs (1)
448
if (
TemplatedParent
== null)
System\Windows\Controls\DataGridCellsPanel.cs (2)
2437
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
2440
return itemsPresenter.
TemplatedParent
as ItemsControl;
System\Windows\Controls\DataGridHelper.cs (2)
152
FrameworkElement parent = element.
TemplatedParent
as FrameworkElement;
162
parent = parent.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\FlowDocumentReader.cs (3)
992
if (fe != null && fe.
TemplatedParent
!= null)
994
focusedElement = fe.
TemplatedParent
;
1021
if (
TemplatedParent
!= null && newDocument != null && LogicalTreeHelper.GetParent(newDocument) != null)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1023
_mainSV =
TemplatedParent
as ScrollViewer;
1250
FrameworkElement fe = presenter.
TemplatedParent
as FrameworkElement;
1260
fe = fe.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\GridViewRowPresenter.cs (3)
442
_viewItem = this.
TemplatedParent
as FrameworkElement;
614
if ((parent =
TemplatedParent
as ContentControl) != null)
640
ContentControl parent =
TemplatedParent
as ContentControl;
System\Windows\Controls\ItemContainerGenerator.cs (1)
177
if (panel.
TemplatedParent
!= null)
System\Windows\Controls\ItemsControl.cs (3)
799
container = panel.
TemplatedParent
as ItemsControl;
833
container = ip.
TemplatedParent
;
839
container = panel.
TemplatedParent
;
System\Windows\Controls\ItemsPresenter.cs (3)
169
return panel.
TemplatedParent
as ItemsPresenter;
186
if (
TemplatedParent
== null)
205
DependencyObject templatedParent = this.
TemplatedParent
;
System\Windows\Controls\Menu.cs (1)
275
if ((element != null && (element == this || element.
TemplatedParent
== this)))
System\Windows\Controls\Page.cs (2)
686
while ((feParent != null) && (feParent.
TemplatedParent
!= null))
688
parent = feParent.
TemplatedParent
;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
679
DataGridColumnHeadersPresenter presenter = columnHeader.
TemplatedParent
as DataGridColumnHeadersPresenter;
789
DataGridColumnHeadersPresenter presenter = columnHeader.
TemplatedParent
as DataGridColumnHeadersPresenter;
System\Windows\Controls\Primitives\DocumentPageView.cs (2)
914
if (this.
TemplatedParent
is DocumentViewerBase)
916
hostViewer = (DocumentViewerBase)this.
TemplatedParent
;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
928
if (fe.
TemplatedParent
!= null)
977
if (fe.
TemplatedParent
!= null)
1152
if (fe != null && fe.
TemplatedParent
!= null)
1154
child = fe.
TemplatedParent
;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
305
ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(
TemplatedParent
);
System\Windows\Controls\Primitives\Popup.cs (2)
1327
return this.
TemplatedParent
== null;
2672
|| (this.
TemplatedParent
is MenuItem))
System\Windows\Controls\Primitives\ScrollBar.cs (1)
383
IInputElement target =
TemplatedParent
as IInputElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
712
ScrollViewer scrollContainer =
TemplatedParent
as ScrollViewer;
737
FrameworkElement templatedParent = scrollContainer.
TemplatedParent
as FrameworkElement;
System\Windows\Controls\Primitives\TabPanel.cs (1)
521
TabControl tc =
TemplatedParent
as TabControl;
System\Windows\Controls\Primitives\TickBar.cs (1)
679
Slider parent =
TemplatedParent
as Slider;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (2)
193
return new UIElementCollection(this,
TemplatedParent
== null ? logicalParent : null);
213
get { return
TemplatedParent
as ToolBar; }
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
328
if (
TemplatedParent
is ToolBar && !HasNonDefaultValue(OrientationProperty))
518
get { return
TemplatedParent
as ToolBar; }
System\Windows\Controls\Primitives\Track.cs (2)
699
binding.Source = this.
TemplatedParent
;
713
RangeBase rangeBase =
TemplatedParent
as RangeBase;
System\Windows\Controls\ScrollViewer.cs (3)
920
Control templatedParentControl =
TemplatedParent
as Control;
1348
if (
TemplatedParent
!= null)
2591
Control templatedParentControl = scrollViewer != null ? scrollViewer.
TemplatedParent
as Control : null;
System\Windows\Controls\ToolBarTray.cs (1)
509
ToolBar toolBar = thumb.
TemplatedParent
as ToolBar;
System\windows\Documents\TextEditor.cs (1)
1271
if ((source is FrameworkElement) && ((FrameworkElement)source).
TemplatedParent
== this.UiScope)
System\windows\Documents\TextEditorMouse.cs (1)
789
if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).
TemplatedParent
== textEditor.UiScope)
System\Windows\Documents\TextPointerBase.cs (2)
889
templatedParent = ((FlowDocumentView)textView.RenderScope).
TemplatedParent
as Visual;
892
templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).
TemplatedParent
as Visual;
System\windows\Documents\TextSelection.cs (1)
2580
parent = ((FrameworkElement)element).
TemplatedParent
;
System\Windows\FrameworkElement.cs (5)
893
boundaryElement = fe.
TemplatedParent
;
2092
if (
TemplatedParent
!= null)
2094
FrameworkElement feTemplatedParent =
TemplatedParent
as FrameworkElement;
2099
StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate,
TemplatedParent
, dp, e, false /*invalidateOnlyContainer*/,
2995
templatedParent = fe.
TemplatedParent
;
System\Windows\Generated\FrameworkElement.cs (3)
485
templatedParent =
TemplatedParent
;
587
if(null ==
TemplatedParent
)
591
FrameworkElementFactory fefRoot = BroadcastEventHelper.GetFEFTreeRoot(
TemplatedParent
);
System\Windows\StyleHelper.cs (2)
2063
nextParent = feWalkNode.
TemplatedParent
;
2462
templatedParent = fe.
TemplatedParent
;
System\Windows\TreeWalkHelper.cs (1)
799
FrameworkElement templatedParent = (FrameworkElement)fe.
TemplatedParent
;
ReachFramework (1)
Serialization\VisualTreeFlattener.cs (1)
496
fe.
TemplatedParent
== null)
System.Windows.Controls.Ribbon (20)
Microsoft\Windows\Automation\Peers\RibbonTwoLineTextAutomationPeer.cs (1)
53
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)
435
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
438
return itemsPresenter.
TemplatedParent
as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
286
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
289
return itemsPresenter.
TemplatedParent
as RibbonTab;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (1)
60
get { return
TemplatedParent
as RibbonQuickAccessToolBar; }
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
299
get { return
TemplatedParent
as RibbonQuickAccessToolBar; }
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
306
FrameworkElement itemsPresenter =
TemplatedParent
as FrameworkElement;
309
return itemsPresenter.
TemplatedParent
as RibbonTabHeaderItemsControl;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (2)
178
if (popup.
TemplatedParent
is RibbonMenuItem)
182
else if (popup.
TemplatedParent
is RibbonMenuButton)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
76
RibbonGallery parentGallery = this.
TemplatedParent
as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (5)
1498
if (fe != null && fe.
TemplatedParent
!= null && !(fe.
TemplatedParent
is ContentPresenter))
1876
if (feOriginal.
TemplatedParent
== null ||
1877
feOriginal.
TemplatedParent
is ContentPresenter)
1883
TransferProperties(feOriginal.
TemplatedParent
as FrameworkElement, feClone, /*cloningForTemplatePart*/ true);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1400
if (source != null && (source == this || source.
TemplatedParent
== this))
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
305
ribbonGroup = popupParent.
TemplatedParent
as RibbonGroup;