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