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