13 references to IsAncestorOf
PresentationCore (6)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
83
if (VisualTreeHelper.
IsAncestorOf
(spicAddingVisual, curV))
89
if (!VisualTreeHelper.
IsAncestorOf
(spicAddingVisual, curV))
System\Windows\Input\Stylus\Wisp\PenContexts.cs (2)
281
if (VisualTreeHelper.
IsAncestorOf
(spicAddingVisual, curV))
287
if (!VisualTreeHelper.
IsAncestorOf
(spicAddingVisual, curV))
System\Windows\UIElement.cs (1)
1538
if(parent != null && VisualTreeHelper.
IsAncestorOf
(e.Ancestor, parent))
System\Windows\UIElement3D.cs (1)
238
if (parent != null && VisualTreeHelper.
IsAncestorOf
(e.Ancestor, parent))
PresentationFramework (7)
MS\Internal\Data\CommitManager.cs (1)
132
bool result = (ancestor == null) || VisualTreeHelper.
IsAncestorOf
(ancestor, element);
MS\Internal\Documents\DocumentViewerHelper.cs (2)
341
VisualTreeHelper.
IsAncestorOf
(findToolBarHost, focusedElement))
349
VisualTreeHelper.
IsAncestorOf
(findToolBarHost, focusedElement))
MS\Internal\Helper.cs (1)
1326
Debug.Assert(VisualTreeHelper.
IsAncestorOf
(pathEndElement, pathStartElement), "pathEndElement should be an ancestor of pathStartElement");
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1145
if (VisualTreeHelper.
IsAncestorOf
(this, targetObject))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
833
if (itemsControl == null || !VisualTreeHelper.
IsAncestorOf
(this, _scrollData._firstContainerInViewport))
System\Windows\FrameworkElement.cs (1)
2537
if(feParent == null || !VisualTreeHelper.
IsAncestorOf
(e.Ancestor, feParent))