65 references to GetParent
PresentationFramework (58)
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
252parent = LogicalTreeHelper.GetParent(current);
MS\Internal\Controls\InnerItemCollectionView.cs (1)
714if (LogicalTreeHelper.GetParent(node) != null)
MS\Internal\Data\ObjectRef.cs (3)
188DependencyObject parent = LogicalTreeHelper.GetParent(d); 238ContentControl cc = LogicalTreeHelper.GetParent(fo.DO) as ContentControl; 254parent = LogicalTreeHelper.GetParent(dd);
MS\Internal\Documents\ContentElementCollection.cs (1)
732node = LogicalTreeHelper.GetParent(node);
MS\Internal\Documents\DocumentViewerHelper.cs (1)
325child = LogicalTreeHelper.GetParent(child);
MS\Internal\Documents\TableColumnCollectionInternal.cs (1)
147if (LogicalTreeHelper.GetParent(item.Parent) != Owner)
MS\Internal\Documents\TableTextElementCollectionInternal.cs (1)
268if (LogicalTreeHelper.GetParent(item.Parent) != Owner)
MS\Internal\Helper.cs (1)
1460parent = LogicalTreeHelper.GetParent(element);
MS\Internal\PtsHost\RunClient.cs (1)
44_inlineUIContainer = (InlineUIContainer)LogicalTreeHelper.GetParent(element);
MS\Internal\Text\DynamicPropertyReader.cs (2)
76DependencyObject parent = LogicalTreeHelper.GetParent(element); 300return GetBaselineAlignment(LogicalTreeHelper.GetParent(element));
System\Windows\Controls\ContentControl.cs (2)
84DependencyObject logicalParent = LogicalTreeHelper.GetParent(d); 282DependencyObject logicalParent = LogicalTreeHelper.GetParent(d);
System\Windows\Controls\FlowDocumentReader.cs (2)
1003focusedElement = LogicalTreeHelper.GetParent(focusedElement); 1026if (TemplatedParent != null && newDocument != null && LogicalTreeHelper.GetParent(newDocument) != null)
System\Windows\Controls\FlowDocumentScrollViewer.cs (8)
807if (document != null && LogicalTreeHelper.GetParent(document) != this) 814LogicalTreeHelper.GetParent(document), route, args, LogicalTreeHelper.GetParent(branchNode)); 825if (document != null && LogicalTreeHelper.GetParent(document) != this) 830continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode)); 1149child = LogicalTreeHelper.GetParent(child); 1225if (newDocument != null && LogicalTreeHelper.GetParent(newDocument) != null)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
957DependencyObject logicalParent = LogicalTreeHelper.GetParent(d);
System\Windows\Controls\ItemsControl.cs (2)
1173ItemsControl ic = LogicalTreeHelper.GetParent(ui) as ItemsControl; 1463DependencyObject parent = LogicalTreeHelper.GetParent(container);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1163child = LogicalTreeHelper.GetParent(child); 1347 if (doDocument != null && LogicalTreeHelper.GetParent(doDocument) != null && doDocument is ContentElement)
System\Windows\Controls\Primitives\Popup.cs (2)
900if ((currentParent = LogicalTreeHelper.GetParent(child)) != null) 975object logicalParent = LogicalTreeHelper.GetParent(element);
System\Windows\Controls\SinglePageViewer.cs (6)
785if (document != null && LogicalTreeHelper.GetParent(document) != this) 792LogicalTreeHelper.GetParent(document), route, args, LogicalTreeHelper.GetParent(branchNode)); 803if (document != null && LogicalTreeHelper.GetParent(document) != this) 808continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode));
System\Windows\Controls\TextAdaptor.cs (1)
607DependencyObject parent = LogicalTreeHelper.GetParent(childElement);
System\Windows\Documents\FixedDocument.cs (1)
483el = LogicalTreeHelper.GetParent(el);
System\Windows\Documents\FixedPage.cs (5)
577PageContent pc = LogicalTreeHelper.GetParent(this) as PageContent; 581FixedDocument doc = LogicalTreeHelper.GetParent(pc) as FixedDocument; 1017DependencyObject parent = LogicalTreeHelper.GetParent(e); 1087DependencyObject parent = LogicalTreeHelper.GetParent(current); 1114parent = LogicalTreeHelper.GetParent(parent);
System\Windows\Documents\FlowDocument.cs (1)
908parentOfEmbeddedElement = LogicalTreeHelper.GetParent((DependencyObject)element);
System\Windows\Documents\RangeContentEnumerator.cs (1)
349node = LogicalTreeHelper.GetParent(node);
System\windows\Documents\TextSelection.cs (1)
2580parent = LogicalTreeHelper.GetParent(element);
System\Windows\FrameworkContentElement.cs (3)
1351FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 1398child = LogicalTreeHelper.GetParent(child); 1416continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
System\Windows\FrameworkElement.cs (6)
1779DependencyObject parent = LogicalTreeHelper.GetParent(d); 2933FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 3127continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 3177modelTreeNode = LogicalTreeHelper.GetParent(modelTreeNode); 6117modelTreeNode = LogicalTreeHelper.GetParent(modelTreeNode); 6131child = LogicalTreeHelper.GetParent(child);
System\Windows\TreeWalkHelper.cs (1)
1016DependencyObject logicalParent = LogicalTreeHelper.GetParent(d);
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Generated\TreeHelper.cs (3)
27return LogicalTreeHelper.GetParent(ce); 46parent = LogicalTreeHelper.GetParent(element); 119element = LogicalTreeHelper.GetParent(element);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1318RibbonComboBox comboBoxParent = LogicalTreeHelper.GetParent(this) as RibbonComboBox;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
158popup = LogicalTreeHelper.GetParent(rootVisual) as Popup; 2594parent = LogicalTreeHelper.GetParent(ce);
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
305Popup popupParent = LogicalTreeHelper.GetParent(element) as Popup;