246 references to GetParent
PresentationCore (47)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (4)
65
return VisualTreeHelper.
GetParent
(el) as Visual;
93
Visual parent = VisualTreeHelper.
GetParent
(el) as Visual;
107
Visual parent = VisualTreeHelper.
GetParent
(el) as Visual;
123
Visual test = VisualTreeHelper.
GetParent
(scan) as Visual;
Core\CSharp\MS\Internal\DeferredElementTreeState.cs (2)
32
parent = VisualTreeHelper.
GetParent
(v);
46
parent = VisualTreeHelper.
GetParent
(v3D);
Core\CSharp\MS\Internal\Ink\Renderer.cs (5)
387
= VisualTreeHelper.
GetParent
(visual) as ContainerVisual;
604
&& (VisualTreeHelper.
GetParent
(precedingVisual) != null))
606
VisualCollection children = ((ContainerVisual)(VisualTreeHelper.
GetParent
(precedingVisual))).Children;
628
ContainerVisual parent = (ContainerVisual)(VisualTreeHelper.
GetParent
(visual));
693
else if (VisualTreeHelper.
GetParent
(hcVisual) == null)
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (1)
545
dependencyObject = VisualTreeHelper.
GetParent
(dependencyObject);
Core\CSharp\MS\Internal\UIElementHelper.cs (1)
83
reference = VisualTreeHelper.
GetParent
(reference);
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
268
reference = VisualTreeHelper.
GetParent
(reference);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (2)
297
DependencyObject parent = VisualTreeHelper.
GetParent
(owner);
327
parent = VisualTreeHelper.
GetParent
(parent);
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
139
isPotentialOuterChange: (changeType==VisualTreeChangeType.Add && index==0 && VisualTreeHelper.
GetParent
(parent) == null));
Core\CSharp\System\Windows\Input\FocusManager.cs (2)
354
dependencyObject = VisualTreeHelper.
GetParent
(dependencyObject);
407
DependencyObject visualParent = VisualTreeHelper.
GetParent
(d);
Core\CSharp\System\Windows\Input\InputElement.cs (5)
86
DependencyObject parent = VisualTreeHelper.
GetParent
(v);
94
DependencyObject parent = VisualTreeHelper.
GetParent
(v3D);
136
DependencyObject parent = VisualTreeHelper.
GetParent
(v);
144
DependencyObject parent = VisualTreeHelper.
GetParent
(v3D);
221
while(rootVisual != null && ((parentVisual = VisualTreeHelper.
GetParent
(rootVisual)) != null))
Core\CSharp\System\Windows\Input\Manipulation.cs (1)
354
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1304
currentChild = VisualTreeHelper.
GetParent
(currentChild);
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (4)
219
((VisualTreeHelper.
GetParent
(element) == null && !(element.IsRootElement)) // element is not connected to visual tree, OR
220
|| (VisualTreeHelper.
GetParent
(element) is Visual3D) // element is a 2D child of a 3D object, OR
221
|| (VisualTreeHelper.
GetParent
(element) == InternalTarget))) // element is only connected to visual tree via our wrapper Visual
274
DependencyObject parent = VisualTreeHelper.
GetParent
(element);
Core\CSharp\System\Windows\Media\Visual.cs (3)
4553
while ((VisualTreeHelper.
GetParent
(g) != null) && (g != ancestor))
5159
e = VisualTreeHelper.
GetParent
(e);
5228
e = VisualTreeHelper.
GetParent
(e);
Core\CSharp\System\Windows\Media\VisualBrush.cs (3)
202
((VisualTreeHelper.
GetParent
(element) == null && !(element.IsRootElement))
203
|| (VisualTreeHelper.
GetParent
(element) is Visual3D)))
242
DependencyObject parent = VisualTreeHelper.
GetParent
(element);
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (2)
193
reference = VisualTreeHelper.
GetParent
(reference);
212
reference = VisualTreeHelper.
GetParent
(reference);
Core\CSharp\System\Windows\Media3D\Visual3D.cs (4)
475
Debug.Assert(VisualTreeHelper.
GetParent
(this) != null, "If oldParent is null, current parent should != null.");
480
VisualTreeHelper.
GetParent
(this),
1709
while ((VisualTreeHelper.
GetParent
(g) != null) && (g != ancestor))
1721
g = VisualTreeHelper.
GetParent
(gAsVisual3D);
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (1)
649
doCurrent = VisualTreeHelper.
GetParent
(vis);
Core\CSharp\System\Windows\UIElement.cs (4)
734
for(Visual v = VisualTreeHelper.
GetParent
(this) as Visual; v != null; v = VisualTreeHelper.
GetParent
(v) as Visual)
752
for(Visual v = VisualTreeHelper.
GetParent
(this) as Visual; v != null; v = VisualTreeHelper.
GetParent
(v) as Visual)
PresentationFramework (171)
src\Framework\MS\Internal\Annotations\Anchoring\PathNode.cs (1)
253
parent = VisualTreeHelper.
GetParent
(visual);
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
163
Visual parent = VisualTreeHelper.
GetParent
(_adornerLayer) as Visual;
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
184
AdornerLayer adornerLayer = (AdornerLayer)VisualTreeHelper.
GetParent
(this);
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (2)
130
UIElement parent = ((UIElement)VisualTreeHelper.
GetParent
(this)) as UIElement;
134
( (UIElement)VisualTreeHelper.
GetParent
(this) ).InvalidateArrange( );
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
284
DependencyObject parent = VisualTreeHelper.
GetParent
(currentObject);
src\Framework\MS\Internal\Data\ObjectRef.cs (2)
271
ContentPresenter cp = VisualTreeHelper.IsVisualType(dd) ? VisualTreeHelper.
GetParent
(dd) as ContentPresenter : null;
528
DependencyObject layout = (v != null) ? VisualTreeHelper.
GetParent
(v) : null;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (2)
1345
if (VisualTreeHelper.
GetParent
(this) != null)
2708
currentVisual = VisualTreeHelper.
GetParent
(currentVisual);
src\Framework\MS\Internal\Documents\DocumentPageHost.cs (4)
53
Visual currentParent = VisualTreeHelper.
GetParent
(pageVisual) as Visual;
59
DocumentPageHost docPageHost = VisualTreeHelper.
GetParent
(pageVisualHost) as DocumentPageHost;
90
pageVisualHost = VisualTreeHelper.
GetParent
(_pageVisual) as ContainerVisual;
129
return VisualTreeHelper.
GetParent
(_pageVisual) as Visual;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
476
Visual visual = VisualTreeHelper.
GetParent
(originalVisual) as Visual;
496
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
567
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
src\Framework\MS\Internal\Documents\UIElementIsland.cs (1)
43
Visual currentParent = VisualTreeHelper.
GetParent
(_child) as Visual;
src\Framework\MS\Internal\FrameworkObject.cs (7)
342
fo.Reset(VisualTreeHelper.
GetParent
(visual));
350
fo.Reset(VisualTreeHelper.
GetParent
(visual3D));
435
parent = VisualTreeHelper.
GetParent
(_fe);
449
parent = VisualTreeHelper.
GetParent
(visual);
457
parent = VisualTreeHelper.
GetParent
(visual3D);
896
visualParent = VisualTreeHelper.
GetParent
(_fe);
905
visualParent = (visual != null) ? VisualTreeHelper.
GetParent
(visual) : null;
src\Framework\MS\Internal\Helper.cs (4)
465
parent = VisualTreeHelper.
GetParent
(v);
1326
element = VisualTreeHelper.
GetParent
(element);
1395
element = VisualTreeHelper.
GetParent
(element);
1472
parent = VisualTreeHelper.
GetParent
(element);
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (3)
161
Debug.Assert(VisualTreeHelper.
GetParent
(feedbackAdorner) == null,
176
Debug.Assert(VisualTreeHelper.
GetParent
(_inkCanvas.FeedbackAdorner)
194
Debug.Assert(VisualTreeHelper.
GetParent
(feedbackAdorner) == adornerLayer,
src\Framework\MS\Internal\PtsHost\Line.cs (1)
428
Visual currentParent = VisualTreeHelper.
GetParent
(inlineObject.UIElementIsland) as Visual;
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (1)
295
Visual currentParent = VisualTreeHelper.
GetParent
(paraClient.Visual) as Visual;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (4)
1686
|| VisualTreeHelper.
GetParent
(cellParaClient.Visual) == null )
1688
Visual currentParent = VisualTreeHelper.
GetParent
(cellParaClient.Visual) as Visual;
1702
&& VisualTreeHelper.
GetParent
(cellParaClient.Visual) != null );
1836
&& VisualTreeHelper.
GetParent
(cellParaClient.Visual) != null );
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (1)
125
Visual currentParent = VisualTreeHelper.
GetParent
(uiElementIsland) as Visual;
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
175
Visual currentParent = VisualTreeHelper.
GetParent
(inlineObject.Element) as Visual;
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
280
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
214
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
src\Framework\System\Windows\BroadcastEventHelper.cs (3)
636
DependencyObject coreParent = (fo.IsFE) ? VisualTreeHelper.
GetParent
(fo.FE) : null;
700
coreParent = VisualTreeHelper.
GetParent
(v);
708
coreParent = VisualTreeHelper.
GetParent
(v3D);
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (1)
238
_templatedAdorner = VisualTreeHelper.
GetParent
(templateParent) as TemplatedAdorner;
src\Framework\System\Windows\Controls\Canvas.cs (1)
205
Canvas p = VisualTreeHelper.
GetParent
(uie) as Canvas;
src\Framework\System\Windows\Controls\ComboBox.cs (2)
241
if (comboBox._clonedElement != null && VisualTreeHelper.
GetParent
(comboBox._clonedElement) == null)
934
DependencyObject parent = VisualTreeHelper.
GetParent
(_clonedElement);
src\Framework\System\Windows\Controls\DataGrid.cs (3)
6394
sourceElement = VisualTreeHelper.
GetParent
(sourceElement) as UIElement;
6626
element = VisualTreeHelper.
GetParent
(row) as UIElement;
6647
element = VisualTreeHelper.
GetParent
(cell) as UIElement;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (4)
89
UIElement parent = VisualTreeHelper.
GetParent
(this) as UIElement;
717
if (isRecycled && VisualTreeHelper.
GetParent
(container) != null)
739
if (isRecycled && VisualTreeHelper.
GetParent
(container) != null)
1863
return VisualTreeHelper.
GetParent
(row) as DataGridRowsPresenter;
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
186
parent = VisualTreeHelper.
GetParent
(parent) as UIElement;
311
return VisualTreeHelper.
GetParent
(element) as DataGridCellsPanel;
src\Framework\System\Windows\Controls\DockPanel.cs (1)
136
DockPanel p = VisualTreeHelper.
GetParent
(uie) as DockPanel;
src\Framework\System\Windows\Controls\Grid.cs (2)
3047
Grid grid = VisualTreeHelper.
GetParent
(child) as Grid;
4225
Grid grid = VisualTreeHelper.
GetParent
(this) as Grid;
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
483
AdornerLayer layer = VisualTreeHelper.
GetParent
(_resizeData.Adorner) as AdornerLayer;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
929
Visual parent = VisualTreeHelper.
GetParent
(headerAsVisual) as Visual;
src\Framework\System\Windows\Controls\GroupItem.cs (2)
382
parent = VisualTreeHelper.
GetParent
(parent);
398
DependencyObject parentPanel = VisualTreeHelper.
GetParent
(this);
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
579
InkCanvasInnerCanvas p = VisualTreeHelper.
GetParent
(uie) as InkCanvasInnerCanvas;
src\Framework\System\Windows\Controls\ItemsControl.cs (7)
1188
ui = VisualTreeHelper.
GetParent
(ui) as UIElement;
1344
Visual parent = VisualTreeHelper.
GetParent
(visual) as Visual;
2004
DependencyObject startingParent = VisualTreeHelper.
GetParent
(startingElement);
2014
startingParent = VisualTreeHelper.
GetParent
(startingParent);
3259
for (DependencyObject current = _itemsHost; current != this && current != null; current = VisualTreeHelper.
GetParent
(current))
3362
element = VisualTreeHelper.
GetParent
(element) as FrameworkElement;
3391
element = VisualTreeHelper.
GetParent
(element) as FrameworkElement;
src\Framework\System\Windows\Controls\ItemsPresenter.cs (3)
183
Visual parent = VisualTreeHelper.
GetParent
(groupItem) as Visual;
187
return VisualTreeHelper.
GetParent
(parent) as ItemsPresenter;
292
ScrollContentPresenter scp = VisualTreeHelper.
GetParent
(this) as ScrollContentPresenter;
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
339
if (VisualTreeHelper.
GetParent
(this) == null)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2379
owner = VisualTreeHelper.
GetParent
(this) as ItemsControl;
src\Framework\System\Windows\Controls\Page.cs (1)
661
Visual visualParent = VisualTreeHelper.
GetParent
(this) as Visual;
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
986
return VisualTreeHelper.
GetParent
(v);
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
93
return focusScope == null || VisualTreeHelper.
GetParent
(focusScope) == null;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (2)
934
visualParent = VisualTreeHelper.
GetParent
(this) as Visual;
942
visualParent = VisualTreeHelper.
GetParent
(visualParent) as Visual;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (10)
253
if (newValue == null && VisualTreeHelper.
GetParent
(this) == null)
261
if (VisualTreeHelper.
GetParent
(this) == null)
317
if (!popup.IsLoaded && VisualTreeHelper.
GetParent
(popup) != null)
725
parent = VisualTreeHelper.
GetParent
(parent);
909
if ((currentParent = VisualTreeHelper.
GetParent
(child)) != null)
982
if (logicalParent == null && VisualTreeHelper.
GetParent
(element) != null)
1428
while ((parent = VisualTreeHelper.
GetParent
(root)) != null)
1442
targetVisual = VisualTreeHelper.GetContainingVisual2D(VisualTreeHelper.
GetParent
(this));
1817
DependencyObject parent = VisualTreeHelper.
GetParent
(this);
3399
dependencyObject = VisualTreeHelper.
GetParent
(dependencyObject);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
1944
element = System.Windows.Media.VisualTreeHelper.
GetParent
(element) as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1714
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
84
DependencyObject visualParent = VisualTreeHelper.
GetParent
(child);
440
DependencyObject visualParent = VisualTreeHelper.
GetParent
(child);
src\Framework\System\Windows\Controls\Stack.cs (2)
861
DependencyObject parent = VisualTreeHelper.
GetParent
(child);
866
parent = VisualTreeHelper.
GetParent
(dependencyObjectChild);
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1003
FrameworkElement parent = VisualTreeHelper.
GetParent
(Content.InnerControl) as FrameworkElement;
src\Framework\System\Windows\Controls\TabControl.cs (1)
566
FrameworkElement visualParent = VisualTreeHelper.
GetParent
(tabItem) as FrameworkElement;
src\Framework\System\Windows\Controls\TextAdaptor.cs (3)
273
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
327
Visual visual = VisualTreeHelper.
GetParent
(textView.RenderScope) as Visual;
348
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
src\Framework\System\Windows\Controls\ToolBar.cs (1)
660
Panel itemsHost = VisualTreeHelper.
GetParent
(currentFocusElement) as Panel;
src\Framework\System\Windows\Controls\TreeView.cs (1)
836
return VisualTreeHelper.
GetParent
(v);
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
483
if (VisualTreeHelper.
GetParent
(this) != null)
838
FrameworkElement parent = VisualTreeHelper.
GetParent
(toggleButton) as FrameworkElement;
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (1)
401
ItemsPresenter itemsPresenter = VisualTreeHelper.
GetParent
(p) as ItemsPresenter;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (14)
1068
DependencyObject parent = VisualTreeHelper.
GetParent
(element);
3070
Panel parentPanel = (itemsOwner != null) ? VisualTreeHelper.
GetParent
(itemsOwner) as Panel : null;
3686
VirtualizingPanel vp = VisualTreeHelper.
GetParent
(itemsOwner) as VirtualizingPanel;
4023
VirtualizingPanel virtualizingPanel = VisualTreeHelper.
GetParent
(element) as VirtualizingPanel;
4105
parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.
GetParent
(itemsControl)) as ItemsControl;
4123
ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.
GetParent
(itemsOwner)) as IContainItemStorage;
6445
parent = VisualTreeHelper.
GetParent
(parent);
10892
DependencyObject element = VisualTreeHelper.
GetParent
(child);
10966
ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.
GetParent
((Visual)itemStorageProvider)) as IContainItemStorage;
10983
element = VisualTreeHelper.
GetParent
(element);
10999
DependencyObject parent = VisualTreeHelper.
GetParent
(child);
11007
parent = VisualTreeHelper.
GetParent
(child);
12026
VirtualizingStackPanel parent = VisualTreeHelper.
GetParent
(itemsOwner) as VirtualizingStackPanel;
12886
VirtualizingStackPanel vsp = VisualTreeHelper.
GetParent
(container) as VirtualizingStackPanel;
src\Framework\System\Windows\DescendentsWalker.cs (3)
271
if (VisualTreeHelper.
GetParent
(fe) != fe.Parent)
328
if (VisualTreeHelper.
GetParent
(child) != ((FrameworkElement) child).Parent)
381
DependencyObject dependencyObjectParent = VisualTreeHelper.
GetParent
(fe);
src\Framework\System\Windows\DescendentsWalkerBase.cs (1)
42
DependencyObject dependencyObjectParent = VisualTreeHelper.
GetParent
(fe);
src\Framework\System\Windows\Documents\AdornerDecorator.cs (2)
130
if (VisualTreeHelper.
GetParent
(_adornerLayer) != null)
149
if (VisualTreeHelper.
GetParent
(_adornerLayer) != null)
src\Framework\System\Windows\Documents\AdornerLayer.cs (7)
308
visual = (Visual)VisualTreeHelper.
GetParent
(visual);
329
Visual parent = VisualTreeHelper.
GetParent
(visual) as Visual;
338
parent = VisualTreeHelper.
GetParent
(parent) as Visual;
721
Visual adornerLayerParent = VisualTreeHelper.
GetParent
(this) as Visual;
783
Visual adornerLayerParent = VisualTreeHelper.
GetParent
(this) as Visual;
843
Visual adornerLayerParent = VisualTreeHelper.
GetParent
(this) as Visual;
879
element = (Visual)VisualTreeHelper.
GetParent
(element);
src\Framework\System\windows\Documents\CaretElement.cs (1)
854
node = VisualTreeHelper.
GetParent
(node);
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (1)
134
adornerLayer = VisualTreeHelper.
GetParent
(this) as AdornerLayer;
src\Framework\System\Windows\Documents\CompositionAdorner.cs (2)
132
Visual parent2d = VisualTreeHelper.
GetParent
(this.AdornedElement) as Visual;
353
AdornerLayer adornerLayer = VisualTreeHelper.
GetParent
(this) as AdornerLayer;
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (1)
520
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
702
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
803
v = VisualTreeHelper.
GetParent
(v);
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
919
parentOfEmbeddedElement = VisualTreeHelper.
GetParent
((Visual)element);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
300
for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.
GetParent
(visual) as Visual)
src\Framework\System\windows\Documents\TextEditorMouse.cs (3)
622
Visual scrollViewer = VisualTreeHelper.
GetParent
(This.UiScope) as Visual;
625
scrollViewer = VisualTreeHelper.
GetParent
(scrollViewer) as Visual;
811
hitElement = VisualTreeHelper.
GetParent
(hitElement);
src\Framework\System\windows\Documents\TextSelection.cs (3)
2476
element = VisualTreeHelper.
GetParent
(element);
2599
parent = VisualTreeHelper.
GetParent
(element);
2605
parent = VisualTreeHelper.
GetParent
(element);
src\Framework\System\Windows\FrameworkElement.cs (10)
2224
for (Visual v = VisualTreeHelper.
GetParent
(this) as Visual;
2226
v = VisualTreeHelper.
GetParent
(v) as Visual)
2546
FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.
GetParent
(this), out feParent, out fceParent);
2558
BroadcastEventHelper.AddOrRemoveHasLoadedChangeHandlerFlag(this, null, VisualTreeHelper.
GetParent
(e.Ancestor));
2561
BroadcastEventHelper.BroadcastLoadedOrUnloadedEvent(this, null, VisualTreeHelper.
GetParent
(e.Ancestor));
2900
DependencyObject visualParent = VisualTreeHelper.
GetParent
(this);
3116
DependencyObject visualParent = VisualTreeHelper.
GetParent
(this);
3979
DependencyObject parentVisual = VisualTreeHelper.
GetParent
(fe);
4015
for (DependencyObject v = visual; v != null; v = VisualTreeHelper.
GetParent
(v))
5544
fe._parent == null && VisualTreeHelper.
GetParent
(fe) == null &&
src\Framework\System\Windows\Generated\FrameworkElement.cs (2)
723
parent = VisualTreeHelper.
GetParent
(this);
757
parent = VisualTreeHelper.
GetParent
(this);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
728
if (_adornedContentElement != null && (_contentHostParent==null || VisualTreeHelper.
GetParent
(_contentHostParent as Visual) == null))
840
visualParent = VisualTreeHelper.
GetParent
(visualParent) as Visual;
860
AdornerLayer adornerlayer = VisualTreeHelper.
GetParent
(_focusVisualAdornerCache) as AdornerLayer;
1849
while ((visual = VisualTreeHelper.
GetParent
(visual)) != null)
src\Framework\System\Windows\StyleHelper.cs (2)
1968
FrameworkElement parent = VisualTreeHelper.
GetParent
(child) as FrameworkElement;
1977
Debug.Assert( null == VisualTreeHelper.
GetParent
(child),
src\Framework\System\Windows\TreeWalkHelper.cs (1)
1014
DependencyObject visualParent = VisualTreeHelper.
GetParent
(d);
src\Framework\System\Windows\Window.cs (1)
1845
if ( VisualTreeHelper.
GetParent
(this) != null )
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (1)
39
obj = VisualTreeHelper.
GetParent
(obj);
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
2586
else if (VisualTreeHelper.
GetParent
(view) == null)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
116
obj = VisualTreeHelper.
GetParent
(obj);
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
546
obj = VisualTreeHelper.
GetParent
(obj))
System.Activities.Presentation (24)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\quickitemtemplateselector.cs (1)
53
element = VisualTreeHelper.
GetParent
(element);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Controls\WorkaroundPopup.cs (1)
110
currentObject = VisualTreeHelper.
GetParent
(currentObject);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (1)
472
element = VisualTreeHelper.
GetParent
(element);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (6)
144
child = VisualTreeHelper.
GetParent
(child);
205
UIElement parent = VisualTreeHelper.
GetParent
(reference) as UIElement;
213
parent = VisualTreeHelper.
GetParent
(parent) as UIElement;
230
DependencyObject parent = VisualTreeHelper.
GetParent
(child);
266
parent = VisualTreeHelper.
GetParent
(parent) as UIElement;
337
element = VisualTreeHelper.
GetParent
(element);
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
131
obj = VisualTreeHelper.
GetParent
(obj);
469
visualHit = VisualTreeHelper.
GetParent
(visualHit);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (1)
37
if (target != null && VisualTreeHelper.
GetParent
(target) == null)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
280
obj = VisualTreeHelper.
GetParent
(obj);
System.Activities.Presentation\System\Activities\Presentation\View\AutoScrollHelper.cs (1)
22
element = VisualTreeHelper.
GetParent
(element);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
644
source = VisualTreeHelper.
GetParent
(source) as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (1)
267
current != null; current = VisualTreeHelper.
GetParent
(current))
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
367
DependencyObject parent = VisualTreeHelper.
GetParent
(this);
370
parent = VisualTreeHelper.
GetParent
(parent);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (4)
283
DependencyObject parent = VisualTreeHelper.
GetParent
(this);
286
parent = VisualTreeHelper.
GetParent
(parent);
410
parent = VisualTreeHelper.
GetParent
(this) as FrameworkElement;
413
parent = VisualTreeHelper.
GetParent
(parent) as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
325
DependencyObject parent = VisualTreeHelper.
GetParent
(this);
328
parent = VisualTreeHelper.
GetParent
(parent);