74 references to Parent
Microsoft.VisualStudio.LanguageServices (1)
PreviewPane\PreviewPane.xaml.cs (1)
128ParentElement = Parent as FrameworkElement;
PresentationFramework (71)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
136nodeParent = feNode.Parent as FrameworkElement;
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
411PageContent content = page.Parent as PageContent; 414FixedDocument document = content.Parent as FixedDocument;
MS\Internal\Data\ObjectRef.cs (2)
487parent = cp.Parent as System.Windows.Controls.Primitives.GridViewRowPresenterBase; 493parent = ((child != null) ? child.Parent : null) as System.Windows.Controls.Primitives.GridViewRowPresenterBase;
MS\Internal\Documents\TextContainerHelper.cs (3)
607TextElement uiContainer = embeddedObject.Parent as TextElement; 710if (fe.Parent is TextElement) 712TextElement uiContainer = (TextElement)fe.Parent;
MS\Internal\Documents\UIElementIsland.cs (2)
77if (_child is FrameworkElement && ((FrameworkElement)_child).Parent != null) 79SetValue(FrameworkElement.FlowDirectionProperty, ((FrameworkElement)_child).Parent.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\FrameworkObject.cs (2)
116return _fe.Parent; 893logicalParent = _fe.Parent;
MS\Internal\PtsHost\Line.cs (1)
438DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).Parent;
MS\Internal\Text\ComplexLine.cs (1)
191DependencyObject parent = ((FrameworkElement)inlineObject.Element).Parent;
System\Windows\Annotations\AnnotationHelper.cs (1)
1135FrameworkElement parent = viewer.Parent as FrameworkElement;
System\Windows\Controls\DataGridComboBoxColumn.cs (4)
568DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 569DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell); 585DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.Parent as DataGridCell); 586DataGridHelper.CacheFlowDirection(cb, cb.Parent as DataGridCell);
System\Windows\Controls\DataGridHelper.cs (2)
532DataGridCell cell = (element != null) ? element.Parent as DataGridCell : null; 648DataGridCell cell = (element != null) ? element.Parent as DataGridCell : null;
System\Windows\Controls\DataGridHyperlinkColumn.cs (2)
256DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 268DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null);
System\Windows\Controls\DataGridTextColumn.cs (2)
222DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null); 234DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.Parent as DataGridCell : null);
System\Windows\Controls\GridSplitter.cs (2)
493Grid grid = Parent as Grid; 737Grid grid = Parent as Grid;
System\Windows\Controls\GridViewColumnHeader.cs (3)
577GridViewHeaderRowPresenter headerRowPresenter = header.Parent as GridViewHeaderRowPresenter; 640FrameworkElement gripperContainer = _headerGripper.Parent as FrameworkElement; 659GridViewHeaderRowPresenter headerRP = this.Parent as GridViewHeaderRowPresenter;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1012_headerSV = Parent as ScrollViewer;
System\Windows\Controls\ItemsPresenter.cs (1)
286ScrollViewer parent = Parent as ScrollViewer;
System\Windows\Controls\MenuItem.cs (4)
2151if (Parent != null && newParent != null && Parent != newParent) 2398if (Parent != null) 2400return Parent;
System\Windows\Controls\Page.cs (2)
661(Parent is Window) || 780FrameworkElement feParent = this.Parent as FrameworkElement;
System\Windows\Controls\PasswordBox.cs (1)
1005element = element.Parent as FrameworkElement;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
300var parent = this.Parent as UIElement;
System\Windows\Controls\Primitives\MenuBase.cs (2)
416Popup popup = popupRoot.Parent as Popup; 423curr = popup.Parent;
System\Windows\Controls\Primitives\Popup.cs (6)
731Popup popup = popupRoot.Parent as Popup; 1190Popup parentPopup = parentPopupRoot.Parent as Popup; 1240Popup newPopup = (newRoot == null) ? null : newRoot.Parent as Popup; 1349if (Parent == null) // We already know we don't have a visual parent, check logical as well 1368return Parent == null && 3269dependencyObject= popupRoot.Parent;
System\Windows\Controls\Primitives\PopupRoot.cs (1)
151Popup popup = Parent as Popup;
System\Windows\Controls\RadioButton.cs (1)
173DependencyObject parent = this.Parent;
System\Windows\Controls\ScrollViewer.cs (1)
1045element = fe.Parent;
System\Windows\Controls\Slider.cs (2)
859((Popup)_autoToolTip.Parent).Reposition(); 898((Popup)_autoToolTip.Parent).Reposition();
System\Windows\Controls\ToolBar.cs (2)
710if (toolBar.IsOverflowOpen && bb != null && bb.Parent == toolBar) 729return Parent as ToolBarTray;
System\Windows\Controls\ToolBarTray.cs (1)
518if (toolBar != null && toolBar.Parent == this)
System\Windows\DescendentsWalker.cs (3)
268if (VisualTreeHelper.GetParent(fe) != fe.Parent) 325if (VisualTreeHelper.GetParent(child) != fe.Parent) 379DependencyObject logicalParent = fe.Parent;
System\Windows\DescendentsWalkerBase.cs (1)
43logicalParent = fe.Parent;
System\Windows\Documents\DocumentReference.cs (1)
112LogicalTreeHelper.AddLogicalChild(this.Parent, idp);
System\Windows\Documents\FixedDocument.cs (1)
479el = fixedPage.Parent;
System\Windows\Documents\TextPointerBase.cs (2)
892if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 894templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual;
System\Windows\FrameworkElement.cs (1)
2512if (Parent == null)
System\Windows\Generated\FrameworkElement.cs (2)
708DependencyObject parent = Parent; 742DependencyObject parent = Parent;
System\Windows\LogicalTreeHelper.cs (1)
124return fe.Parent;
System\Windows\SystemResources.cs (2)
1282if (popupRoot != null && popupRoot.Parent != null) 1284popupRoot.Parent.CoerceValue(Popup.HasDropShadowProperty);
System\Windows\Window.cs (1)
2427if (Parent != null)
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
1309!((UIElement)(ribbon._itemsPresenterPopup.Parent)).IsArrangeValid)) 1600FrameworkElement popupPlacementTarget = _itemsPresenterPopup.Parent as FrameworkElement;