80 references to Parent
PresentationFramework (71)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
145
nodeParent = feNode.
Parent
as FrameworkElement;
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
421
PageContent content = page.
Parent
as PageContent;
424
FixedDocument document = content.
Parent
as FixedDocument;
src\Framework\MS\Internal\Data\ObjectRef.cs (2)
497
parent = cp.
Parent
as System.Windows.Controls.Primitives.GridViewRowPresenterBase;
503
parent = ((child != null) ? child.
Parent
: null) as System.Windows.Controls.Primitives.GridViewRowPresenterBase;
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
612
TextElement uiContainer = embeddedObject.
Parent
as TextElement;
715
if (fe.
Parent
is TextElement)
717
TextElement uiContainer = (TextElement)fe.
Parent
;
src\Framework\MS\Internal\Documents\UIElementIsland.cs (2)
79
if (_child is FrameworkElement && ((FrameworkElement)_child).
Parent
!= null)
81
SetValue(FrameworkElement.FlowDirectionProperty, ((FrameworkElement)_child).
Parent
.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\FrameworkObject.cs (2)
144
return _fe.
Parent
;
921
logicalParent = _fe.
Parent
;
src\Framework\MS\Internal\PtsHost\Line.cs (1)
441
DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).
Parent
;
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
194
DependencyObject parent = ((FrameworkElement)inlineObject.Element).
Parent
;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
1146
FrameworkElement parent = viewer.
Parent
as FrameworkElement;
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (4)
569
DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.
Parent
as DataGridCell);
570
DataGridHelper.CacheFlowDirection(cb, cb.
Parent
as DataGridCell);
586
DataGridHelper.CacheFlowDirection(cb.EditableTextBoxSite, cb.
Parent
as DataGridCell);
587
DataGridHelper.CacheFlowDirection(cb, cb.
Parent
as DataGridCell);
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
533
DataGridCell cell = (element != null) ? element.
Parent
as DataGridCell : null;
647
DataGridCell cell = (element != null) ? element.
Parent
as DataGridCell : null;
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (2)
257
DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.
Parent
as DataGridCell : null);
269
DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.
Parent
as DataGridCell : null);
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (2)
223
DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.
Parent
as DataGridCell : null);
235
DataGridHelper.CacheFlowDirection(editingElement, editingElement != null ? editingElement.
Parent
as DataGridCell : null);
src\Framework\System\Windows\Controls\GridSplitter.cs (2)
495
Grid grid =
Parent
as Grid;
739
Grid grid =
Parent
as Grid;
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (3)
567
GridViewHeaderRowPresenter headerRowPresenter = header.
Parent
as GridViewHeaderRowPresenter;
630
FrameworkElement gripperContainer = _headerGripper.
Parent
as FrameworkElement;
649
GridViewHeaderRowPresenter headerRP = this.
Parent
as GridViewHeaderRowPresenter;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1014
_headerSV =
Parent
as ScrollViewer;
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
288
ScrollViewer parent =
Parent
as ScrollViewer;
src\Framework\System\Windows\Controls\MenuItem.cs (4)
2199
if (
Parent
!= null && newParent != null &&
Parent
!= newParent)
2458
if (
Parent
!= null)
2460
return
Parent
;
src\Framework\System\Windows\Controls\Page.cs (2)
669
(
Parent
is Window) ||
789
FrameworkElement feParent = this.
Parent
as FrameworkElement;
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
1021
element = element.
Parent
as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
301
var parent = this.
Parent
as UIElement;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
418
Popup popup = popupRoot.
Parent
as Popup;
425
curr = popup.
Parent
;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (6)
729
Popup popup = popupRoot.
Parent
as Popup;
1195
Popup parentPopup = parentPopupRoot.
Parent
as Popup;
1245
Popup newPopup = (newRoot == null) ? null : newRoot.
Parent
as Popup;
1354
if (
Parent
== null) // We already know we don't have a visual parent, check logical as well
1373
return
Parent
== null &&
3383
dependencyObject= popupRoot.
Parent
;
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (1)
147
Popup popup =
Parent
as Popup;
src\Framework\System\Windows\Controls\RadioButton.cs (1)
169
DependencyObject parent = this.
Parent
;
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1072
element = fe.
Parent
;
src\Framework\System\Windows\Controls\Slider.cs (2)
862
((Popup)_autoToolTip.
Parent
).Reposition();
902
((Popup)_autoToolTip.
Parent
).Reposition();
src\Framework\System\Windows\Controls\ToolBar.cs (2)
720
if (toolBar.IsOverflowOpen && bb != null && bb.
Parent
== toolBar)
739
return
Parent
as ToolBarTray;
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
529
if (toolBar != null && toolBar.
Parent
== this)
src\Framework\System\Windows\DescendentsWalker.cs (3)
271
if (VisualTreeHelper.GetParent(fe) != fe.
Parent
)
328
if (VisualTreeHelper.GetParent(child) != ((FrameworkElement) child).
Parent
)
382
DependencyObject logicalParent = fe.
Parent
;
src\Framework\System\Windows\DescendentsWalkerBase.cs (1)
40
logicalParent = fe.
Parent
;
src\Framework\System\Windows\Documents\DocumentReference.cs (1)
116
LogicalTreeHelper.AddLogicalChild(this.
Parent
, idp);
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
505
el = fixedPage.
Parent
;
src\Framework\System\Windows\Documents\TextPointerBase.cs (2)
897
if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).
Parent
is FrameworkElement)
899
templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).
Parent
).TemplatedParent as Visual;
src\Framework\System\Windows\FrameworkElement.cs (1)
2510
if (
Parent
== null)
src\Framework\System\Windows\Generated\FrameworkElement.cs (2)
719
DependencyObject parent =
Parent
;
753
DependencyObject parent =
Parent
;
src\Framework\System\Windows\LogicalTreeHelper.cs (1)
140
return fe.
Parent
;
src\Framework\System\Windows\SystemResources.cs (2)
1340
if (popupRoot != null && popupRoot.
Parent
!= null)
1342
popupRoot.
Parent
.CoerceValue(Popup.HasDropShadowProperty);
src\Framework\System\Windows\Window.cs (1)
2484
if (
Parent
!= null)
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
227
FrameworkElement parentElement = curElement.
Parent
as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
892
this.layer = this.
Parent
as AdornerLayer;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
622
AdornerLayer layer = this.viewElementDragShadow.
Parent
as AdornerLayer;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (2)
552
current = (FrameworkElement)current.
Parent
;
561
current = (FrameworkElement)current.
Parent
;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
605
Border boarder = this.hostControl.
Parent
as Border;
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
51
if (modelItem.View != null && ((WorkflowViewElement)modelItem.View).
Parent
== null)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
401
FrameworkElement parent = (FrameworkElement)this.
Parent
;
404
parent = parent.
Parent
as FrameworkElement;