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