236 references to GetParent
Microsoft.VisualStudio.LanguageServices (1)
Utilities\DependencyObjectExtensions.cs (1)
16
return (obj is Visual) ? VisualTreeHelper.
GetParent
(obj) : null;
PresentationCore (47)
MS\Internal\Automation\ElementUtil.cs (4)
46
return VisualTreeHelper.
GetParent
(el) as Visual;
74
Visual parent = VisualTreeHelper.
GetParent
(el) as Visual;
88
Visual parent = VisualTreeHelper.
GetParent
(el) as Visual;
104
Visual test = VisualTreeHelper.
GetParent
(scan) as Visual;
MS\Internal\DeferredElementTreeState.cs (2)
35
parent = VisualTreeHelper.
GetParent
(v);
49
parent = VisualTreeHelper.
GetParent
(v3D);
MS\Internal\Ink\Renderer.cs (5)
361
= VisualTreeHelper.
GetParent
(visual) as ContainerVisual;
578
&& (VisualTreeHelper.
GetParent
(precedingVisual) != null))
580
VisualCollection children = ((ContainerVisual)(VisualTreeHelper.
GetParent
(precedingVisual))).Children;
602
ContainerVisual parent = (ContainerVisual)(VisualTreeHelper.
GetParent
(visual));
669
else if (VisualTreeHelper.
GetParent
(hcVisual) == null)
MS\Internal\Media3D\M3DUtil.cs (1)
540
dependencyObject = VisualTreeHelper.
GetParent
(dependencyObject);
MS\Internal\UIElementHelper.cs (1)
79
reference = VisualTreeHelper.
GetParent
(reference);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
248
reference = VisualTreeHelper.
GetParent
(reference);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (2)
265
DependencyObject parent = VisualTreeHelper.
GetParent
(owner);
295
parent = VisualTreeHelper.
GetParent
(parent);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
127
isPotentialOuterChange: (changeType==VisualTreeChangeType.Add && index==0 && VisualTreeHelper.
GetParent
(parent) == null));
System\Windows\Input\FocusManager.cs (2)
324
dependencyObject = VisualTreeHelper.
GetParent
(dependencyObject);
377
DependencyObject visualParent = VisualTreeHelper.
GetParent
(d);
System\Windows\Input\InputElement.cs (5)
61
DependencyObject parent = VisualTreeHelper.
GetParent
(v);
69
DependencyObject parent = VisualTreeHelper.
GetParent
(v3D);
109
DependencyObject parent = VisualTreeHelper.
GetParent
(v);
117
DependencyObject parent = VisualTreeHelper.
GetParent
(v3D);
191
while(rootVisual != null && ((parentVisual = VisualTreeHelper.
GetParent
(rootVisual)) != null))
System\Windows\Input\Manipulation.cs (1)
307
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
System\Windows\Input\TouchDevice.cs (1)
1205
currentChild = VisualTreeHelper.
GetParent
(currentChild);
System\Windows\Media\BitmapCacheBrush.cs (4)
208
((VisualTreeHelper.
GetParent
(element) == null && !(element.IsRootElement)) // element is not connected to visual tree, OR
209
|| (VisualTreeHelper.
GetParent
(element) is Visual3D) // element is a 2D child of a 3D object, OR
210
|| (VisualTreeHelper.
GetParent
(element) == InternalTarget))) // element is only connected to visual tree via our wrapper Visual
263
DependencyObject parent = VisualTreeHelper.
GetParent
(element);
System\Windows\Media\Visual.cs (3)
4491
while ((VisualTreeHelper.
GetParent
(g) != null) && (g != ancestor))
5097
e = VisualTreeHelper.
GetParent
(e);
5166
e = VisualTreeHelper.
GetParent
(e);
System\Windows\Media\VisualBrush.cs (3)
190
((VisualTreeHelper.
GetParent
(element) == null && !(element.IsRootElement))
191
|| (VisualTreeHelper.
GetParent
(element) is Visual3D)))
230
DependencyObject parent = VisualTreeHelper.
GetParent
(element);
System\Windows\Media\VisualTreeHelper.cs (2)
178
reference = VisualTreeHelper.
GetParent
(reference);
197
reference = VisualTreeHelper.
GetParent
(reference);
System\Windows\Media3D\Visual3D.cs (4)
458
Debug.Assert(VisualTreeHelper.
GetParent
(this) != null, "If oldParent is null, current parent should != null.");
463
VisualTreeHelper.
GetParent
(this),
1673
while ((VisualTreeHelper.
GetParent
(g) != null) && (g != ancestor))
1685
g = VisualTreeHelper.
GetParent
(gAsVisual3D);
System\Windows\Navigation\BaseUriHelper.cs (1)
586
doCurrent = VisualTreeHelper.
GetParent
(vis);
System\Windows\UIElement.cs (4)
718
for(Visual v = VisualTreeHelper.
GetParent
(this) as Visual; v != null; v = VisualTreeHelper.
GetParent
(v) as Visual)
736
for(Visual v = VisualTreeHelper.
GetParent
(this) as Visual; v != null; v = VisualTreeHelper.
GetParent
(v) as Visual)
PresentationFramework (171)
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
229
parent = VisualTreeHelper.
GetParent
(visual);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
143
Visual parent = VisualTreeHelper.
GetParent
(_adornerLayer) as Visual;
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
175
AdornerLayer adornerLayer = (AdornerLayer)VisualTreeHelper.
GetParent
(this);
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (2)
115
UIElement parent = ((UIElement)VisualTreeHelper.
GetParent
(this)) as UIElement;
119
((UIElement)VisualTreeHelper.
GetParent
(this)).InvalidateArrange();
MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
273
DependencyObject parent = VisualTreeHelper.
GetParent
(currentObject);
MS\Internal\Data\ObjectRef.cs (2)
261
ContentPresenter cp = VisualTreeHelper.IsVisualType(dd) ? VisualTreeHelper.
GetParent
(dd) as ContentPresenter : null;
512
DependencyObject layout = (v != null) ? VisualTreeHelper.
GetParent
(v) : null;
MS\Internal\Documents\DocumentGrid.cs (2)
1311
if (VisualTreeHelper.
GetParent
(this) != null)
2663
currentVisual = VisualTreeHelper.
GetParent
(currentVisual);
MS\Internal\Documents\DocumentPageHost.cs (4)
51
Visual currentParent = VisualTreeHelper.
GetParent
(pageVisual) as Visual;
57
DocumentPageHost docPageHost = VisualTreeHelper.
GetParent
(pageVisualHost) as DocumentPageHost;
88
pageVisualHost = VisualTreeHelper.
GetParent
(_pageVisual) as ContainerVisual;
127
return VisualTreeHelper.
GetParent
(_pageVisual) as Visual;
MS\Internal\Documents\DocumentViewerHelper.cs (2)
454
Visual visual = VisualTreeHelper.
GetParent
(originalVisual) as Visual;
474
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
MS\Internal\Documents\TextDocumentView.cs (1)
557
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
MS\Internal\Documents\UIElementIsland.cs (1)
39
Visual currentParent = VisualTreeHelper.
GetParent
(_child) as Visual;
MS\Internal\FrameworkObject.cs (7)
311
fo.Reset(VisualTreeHelper.
GetParent
(visual));
319
fo.Reset(VisualTreeHelper.
GetParent
(visual3D));
404
parent = VisualTreeHelper.
GetParent
(_fe);
418
parent = VisualTreeHelper.
GetParent
(visual);
426
parent = VisualTreeHelper.
GetParent
(visual3D);
865
visualParent = VisualTreeHelper.
GetParent
(_fe);
874
visualParent = (visual != null) ? VisualTreeHelper.
GetParent
(visual) : null;
MS\Internal\Helper.cs (4)
447
parent = VisualTreeHelper.
GetParent
(v);
1301
element = VisualTreeHelper.
GetParent
(element);
1370
element = VisualTreeHelper.
GetParent
(element);
1447
parent = VisualTreeHelper.
GetParent
(element);
MS\Internal\Ink\InkCanvasSelection.cs (3)
141
Debug.Assert(VisualTreeHelper.
GetParent
(feedbackAdorner) == null,
156
Debug.Assert(VisualTreeHelper.
GetParent
(_inkCanvas.FeedbackAdorner)
174
Debug.Assert(VisualTreeHelper.
GetParent
(feedbackAdorner) == adornerLayer,
MS\Internal\PtsHost\Line.cs (1)
410
Visual currentParent = VisualTreeHelper.
GetParent
(inlineObject.UIElementIsland) as Visual;
MS\Internal\PtsHost\PtsHelper.cs (1)
268
Visual currentParent = VisualTreeHelper.
GetParent
(paraClient.Visual) as Visual;
MS\Internal\PtsHost\TableParaClient.cs (4)
1573
|| VisualTreeHelper.
GetParent
(cellParaClient.Visual) == null )
1575
Visual currentParent = VisualTreeHelper.
GetParent
(cellParaClient.Visual) as Visual;
1589
&& VisualTreeHelper.
GetParent
(cellParaClient.Visual) != null );
1718
&& VisualTreeHelper.
GetParent
(cellParaClient.Visual) != null );
MS\Internal\PtsHost\UIElementParaClient.cs (1)
114
Visual currentParent = VisualTreeHelper.
GetParent
(uiElementIsland) as Visual;
MS\Internal\Text\ComplexLine.cs (1)
167
Visual currentParent = VisualTreeHelper.
GetParent
(inlineObject.Element) as Visual;
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
264
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
196
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
System\Windows\BroadcastEventHelper.cs (3)
632
DependencyObject coreParent = (fo.IsFE) ? VisualTreeHelper.
GetParent
(fo.FE) : null;
696
coreParent = VisualTreeHelper.
GetParent
(v);
704
coreParent = VisualTreeHelper.
GetParent
(v3D);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
225
_templatedAdorner = VisualTreeHelper.
GetParent
(templateParent) as TemplatedAdorner;
System\Windows\Controls\Canvas.cs (1)
190
Canvas p = VisualTreeHelper.
GetParent
(uie) as Canvas;
System\Windows\Controls\ComboBox.cs (2)
230
if (comboBox._clonedElement != null && VisualTreeHelper.
GetParent
(comboBox._clonedElement) == null)
924
DependencyObject parent = VisualTreeHelper.
GetParent
(_clonedElement);
System\Windows\Controls\DataGrid.cs (3)
6390
sourceElement = VisualTreeHelper.
GetParent
(sourceElement) as UIElement;
6622
element = VisualTreeHelper.
GetParent
(row) as UIElement;
6643
element = VisualTreeHelper.
GetParent
(cell) as UIElement;
System\Windows\Controls\DataGridCellsPanel.cs (4)
83
UIElement parent = VisualTreeHelper.
GetParent
(this) as UIElement;
711
if (isRecycled && VisualTreeHelper.
GetParent
(container) != null)
733
if (isRecycled && VisualTreeHelper.
GetParent
(container) != null)
1859
return VisualTreeHelper.
GetParent
(row) as DataGridRowsPresenter;
System\Windows\Controls\DataGridHelper.cs (2)
179
parent = VisualTreeHelper.
GetParent
(parent) as UIElement;
304
return VisualTreeHelper.
GetParent
(element) as DataGridCellsPanel;
System\Windows\Controls\DockPanel.cs (1)
124
DockPanel p = VisualTreeHelper.
GetParent
(uie) as DockPanel;
System\Windows\Controls\Grid.cs (2)
2979
Grid grid = VisualTreeHelper.
GetParent
(child) as Grid;
3991
Grid grid = VisualTreeHelper.
GetParent
(this) as Grid;
System\Windows\Controls\GridSplitter.cs (1)
479
AdornerLayer layer = VisualTreeHelper.
GetParent
(_resizeData.Adorner) as AdornerLayer;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
924
Visual parent = VisualTreeHelper.
GetParent
(headerAsVisual) as Visual;
System\Windows\Controls\GroupItem.cs (2)
372
parent = VisualTreeHelper.
GetParent
(parent);
388
DependencyObject parentPanel = VisualTreeHelper.
GetParent
(this);
System\Windows\Controls\InkCanvas.cs (1)
565
InkCanvasInnerCanvas p = VisualTreeHelper.
GetParent
(uie) as InkCanvasInnerCanvas;
System\Windows\Controls\ItemsControl.cs (8)
1176
ui = VisualTreeHelper.
GetParent
(ui) as UIElement;
1331
Visual parent = VisualTreeHelper.
GetParent
(visual) as Visual;
1992
DependencyObject startingParent = VisualTreeHelper.
GetParent
(startingElement);
2002
startingParent = VisualTreeHelper.
GetParent
(startingParent);
3095
Visual parent = VisualTreeHelper.
GetParent
(element) as Visual;
3319
for (DependencyObject current = _itemsHost; current != this && current != null; current = VisualTreeHelper.
GetParent
(current))
3422
element = VisualTreeHelper.
GetParent
(element) as FrameworkElement;
3451
element = VisualTreeHelper.
GetParent
(element) as FrameworkElement;
System\Windows\Controls\ItemsPresenter.cs (3)
177
Visual parent = VisualTreeHelper.
GetParent
(groupItem) as Visual;
181
return VisualTreeHelper.
GetParent
(parent) as ItemsPresenter;
286
ScrollContentPresenter scp = VisualTreeHelper.
GetParent
(this) as ScrollContentPresenter;
System\Windows\Controls\ListBoxItem.cs (1)
332
if (VisualTreeHelper.
GetParent
(this) == null)
System\Windows\Controls\MenuItem.cs (1)
2311
owner = VisualTreeHelper.
GetParent
(this) as ItemsControl;
System\Windows\Controls\Page.cs (1)
633
Visual visualParent = VisualTreeHelper.
GetParent
(this) as Visual;
System\Windows\Controls\PopupControlService.cs (1)
1106
return VisualTreeHelper.
GetParent
(v);
System\Windows\Controls\Primitives\ButtonBase.cs (1)
85
return focusScope == null || VisualTreeHelper.
GetParent
(focusScope) == null;
System\Windows\Controls\Primitives\DocumentPageView.cs (2)
925
visualParent = VisualTreeHelper.
GetParent
(this) as Visual;
933
visualParent = VisualTreeHelper.
GetParent
(visualParent) as Visual;
System\Windows\Controls\Primitives\Popup.cs (10)
245
if (newValue == null && VisualTreeHelper.
GetParent
(this) == null)
253
if (VisualTreeHelper.
GetParent
(this) == null)
308
if (!popup.IsLoaded && VisualTreeHelper.
GetParent
(popup) != null)
716
parent = VisualTreeHelper.
GetParent
(parent);
894
if ((currentParent = VisualTreeHelper.
GetParent
(child)) != null)
985
if (logicalParent == null && VisualTreeHelper.
GetParent
(element) != null)
1432
while ((parent = VisualTreeHelper.
GetParent
(root)) != null)
1446
targetVisual = VisualTreeHelper.GetContainingVisual2D(VisualTreeHelper.
GetParent
(this));
1822
DependencyObject parent = VisualTreeHelper.
GetParent
(this);
3290
dependencyObject = VisualTreeHelper.
GetParent
(dependencyObject);
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1678
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
74
DependencyObject visualParent = VisualTreeHelper.
GetParent
(child);
432
DependencyObject visualParent = VisualTreeHelper.
GetParent
(child);
System\Windows\Controls\Stack.cs (2)
845
DependencyObject parent = VisualTreeHelper.
GetParent
(child);
850
parent = VisualTreeHelper.
GetParent
(dependencyObjectChild);
System\Windows\Controls\StickyNote.cs (1)
966
FrameworkElement parent = VisualTreeHelper.
GetParent
(Content.InnerControl) as FrameworkElement;
System\Windows\Controls\TabControl.cs (1)
555
FrameworkElement visualParent = VisualTreeHelper.
GetParent
(tabItem) as FrameworkElement;
System\Windows\Controls\TextAdaptor.cs (3)
262
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
345
Visual visual = VisualTreeHelper.
GetParent
(textView.RenderScope) as Visual;
366
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
System\Windows\Controls\ToolBar.cs (1)
641
Panel itemsHost = VisualTreeHelper.
GetParent
(currentFocusElement) as Panel;
System\Windows\Controls\TreeView.cs (1)
831
return VisualTreeHelper.
GetParent
(v);
System\Windows\Controls\TreeViewItem.cs (2)
478
if (VisualTreeHelper.
GetParent
(this) != null)
835
FrameworkElement parent = VisualTreeHelper.
GetParent
(toggleButton) as FrameworkElement;
System\Windows\Controls\VirtualizingPanel.cs (1)
349
ItemsPresenter itemsPresenter = VisualTreeHelper.
GetParent
(p) as ItemsPresenter;
System\Windows\Controls\VirtualizingStackPanel.cs (14)
1094
DependencyObject parent = VisualTreeHelper.
GetParent
(element);
3116
Panel parentPanel = (itemsOwner != null) ? VisualTreeHelper.
GetParent
(itemsOwner) as Panel : null;
3744
VirtualizingPanel vp = VisualTreeHelper.
GetParent
(itemsOwner) as VirtualizingPanel;
4098
VirtualizingPanel virtualizingPanel = VisualTreeHelper.
GetParent
(element) as VirtualizingPanel;
4180
parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.
GetParent
(itemsControl)) as ItemsControl;
4198
ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.
GetParent
(itemsOwner)) as IContainItemStorage;
6576
parent = VisualTreeHelper.
GetParent
(parent);
11036
DependencyObject element = VisualTreeHelper.
GetParent
(child);
11110
ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.
GetParent
((Visual)itemStorageProvider)) as IContainItemStorage;
11127
element = VisualTreeHelper.
GetParent
(element);
11143
DependencyObject parent = VisualTreeHelper.
GetParent
(child);
11151
parent = VisualTreeHelper.
GetParent
(child);
12180
VirtualizingStackPanel parent = VisualTreeHelper.
GetParent
(itemsOwner) as VirtualizingStackPanel;
13046
VirtualizingStackPanel vsp = VisualTreeHelper.
GetParent
(container) as VirtualizingStackPanel;
System\Windows\DescendentsWalker.cs (3)
263
if (VisualTreeHelper.
GetParent
(fe) != fe.Parent)
320
if (VisualTreeHelper.
GetParent
(child) != fe.Parent)
373
DependencyObject dependencyObjectParent = VisualTreeHelper.
GetParent
(fe);
System\Windows\DescendentsWalkerBase.cs (1)
41
DependencyObject dependencyObjectParent = VisualTreeHelper.
GetParent
(fe);
System\Windows\Documents\AdornerDecorator.cs (2)
121
if (VisualTreeHelper.
GetParent
(_adornerLayer) != null)
140
if (VisualTreeHelper.
GetParent
(_adornerLayer) != null)
System\Windows\Documents\AdornerLayer.cs (7)
292
visual = (Visual)VisualTreeHelper.
GetParent
(visual);
312
Visual parent = VisualTreeHelper.
GetParent
(visual) as Visual;
321
parent = VisualTreeHelper.
GetParent
(parent) as Visual;
704
Visual adornerLayerParent = VisualTreeHelper.
GetParent
(this) as Visual;
766
Visual adornerLayerParent = VisualTreeHelper.
GetParent
(this) as Visual;
826
Visual adornerLayerParent = VisualTreeHelper.
GetParent
(this) as Visual;
864
element = (Visual)VisualTreeHelper.
GetParent
(element);
System\windows\Documents\CaretElement.cs (1)
848
node = VisualTreeHelper.
GetParent
(node);
System\Windows\Documents\ColumnResizeAdorner.cs (1)
121
adornerLayer = VisualTreeHelper.
GetParent
(this) as AdornerLayer;
System\Windows\Documents\CompositionAdorner.cs (2)
127
Visual parent2d = VisualTreeHelper.
GetParent
(this.AdornedElement) as Visual;
350
AdornerLayer adornerLayer = VisualTreeHelper.
GetParent
(this) as AdornerLayer;
System\Windows\Documents\DocumentSequenceTextView.cs (1)
497
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
System\Windows\Documents\FixedTextView.cs (2)
679
visual = VisualTreeHelper.
GetParent
(visual) as Visual;
779
v = VisualTreeHelper.
GetParent
(v);
System\Windows\Documents\FlowDocument.cs (1)
911
parentOfEmbeddedElement = VisualTreeHelper.
GetParent
((Visual)element);
System\windows\Documents\TextEditorContextMenu.cs (1)
284
for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.
GetParent
(visual) as Visual)
System\windows\Documents\TextEditorMouse.cs (3)
607
Visual scrollViewer = VisualTreeHelper.
GetParent
(This.UiScope) as Visual;
610
scrollViewer = VisualTreeHelper.
GetParent
(scrollViewer) as Visual;
796
hitElement = VisualTreeHelper.
GetParent
(hitElement);
System\windows\Documents\TextSelection.cs (3)
2467
element = VisualTreeHelper.
GetParent
(element);
2585
parent = VisualTreeHelper.
GetParent
(element);
2591
parent = VisualTreeHelper.
GetParent
(element);
System\Windows\FrameworkElement.cs (10)
2209
for (Visual v = VisualTreeHelper.
GetParent
(this) as Visual;
2211
v = VisualTreeHelper.
GetParent
(v) as Visual)
2532
FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.
GetParent
(this), out feParent, out fceParent);
2544
BroadcastEventHelper.AddOrRemoveHasLoadedChangeHandlerFlag(this, null, VisualTreeHelper.
GetParent
(e.Ancestor));
2547
BroadcastEventHelper.BroadcastLoadedOrUnloadedEvent(this, null, VisualTreeHelper.
GetParent
(e.Ancestor));
2886
DependencyObject visualParent = VisualTreeHelper.
GetParent
(this);
3101
DependencyObject visualParent = VisualTreeHelper.
GetParent
(this);
3966
DependencyObject parentVisual = VisualTreeHelper.
GetParent
(fe);
4002
for (DependencyObject v = visual; v != null; v = VisualTreeHelper.
GetParent
(v))
5540
fe._parent == null && VisualTreeHelper.
GetParent
(fe) == null &&
System\Windows\Generated\FrameworkElement.cs (2)
706
parent = VisualTreeHelper.
GetParent
(this);
740
parent = VisualTreeHelper.
GetParent
(this);
System\Windows\Input\KeyboardNavigation.cs (4)
674
if (_adornedContentElement != null && (_contentHostParent==null || VisualTreeHelper.
GetParent
(_contentHostParent as Visual) == null))
786
visualParent = VisualTreeHelper.
GetParent
(visualParent) as Visual;
806
AdornerLayer adornerlayer = VisualTreeHelper.
GetParent
(_focusVisualAdornerCache) as AdornerLayer;
1759
while ((visual = VisualTreeHelper.
GetParent
(visual)) != null)
System\Windows\StyleHelper.cs (2)
1964
FrameworkElement parent = VisualTreeHelper.
GetParent
(child) as FrameworkElement;
1973
Debug.Assert( null == VisualTreeHelper.
GetParent
(child),
System\Windows\TreeWalkHelper.cs (1)
1015
DependencyObject visualParent = VisualTreeHelper.
GetParent
(d);
System\Windows\Window.cs (1)
1788
if ( VisualTreeHelper.
GetParent
(this) != null )
System.Windows.Controls.Ribbon (11)
Microsoft\Windows\Controls\Generated\TreeHelper.cs (2)
30
return VisualTreeHelper.
GetParent
(element);
42
parent = VisualTreeHelper.
GetParent
(element);
Microsoft\Windows\Controls\KeyTipService.cs (2)
1314
Visual parent = VisualTreeHelper.
GetParent
(visual) as Visual;
1342
parent = VisualTreeHelper.
GetParent
(parent) as Visual;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
248
UIElement parent = VisualTreeHelper.
GetParent
(this) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
567
DependencyObject parent = VisualTreeHelper.
GetParent
(_clonedElement);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
208
RibbonGroupsPanel groupsPanel = VisualTreeHelper.
GetParent
(this) as RibbonGroupsPanel;
Microsoft\Windows\Controls\Ribbon\RibbonSeparator.cs (1)
107
DependencyObject newParent = VisualTreeHelper.
GetParent
(this);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
524
Panel parentPanel = VisualTreeHelper.
GetParent
(this) as Panel;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (2)
297
DependencyObject visualParent = VisualTreeHelper.
GetParent
(element);
362
element = VisualTreeHelper.
GetParent
(element);
WindowsFormsIntegration (6)
System\Windows\Integration\HostUtils.cs (3)
91
current = VisualTreeHelper.
GetParent
(current);
215
current = VisualTreeHelper.
GetParent
(current);
432
currentObject = VisualTreeHelper.
GetParent
(currentObject);
System\Windows\Integration\WindowsFormsHost.cs (2)
164
{ element = VisualTreeHelper.
GetParent
(element); }
399
DependencyObject parentElement = VisualTreeHelper.
GetParent
(frameworkElement);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
68
parent = VisualTreeHelper.
GetParent
(parent);