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