34 references to IsAncestorOf
PresentationCore (1)
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (1)
231return visual.IsAncestorOf(descendant);
PresentationFramework (30)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
1850if (((Visual)this).IsAncestorOf(data.Visual))
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
181(visual != owner && !owner.IsAncestorOf(visual)))
src\Framework\MS\Internal\LayoutDump.cs (1)
914if(visualParent.IsAncestorOf(visual))
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1752&& textBox.IsAncestorOf(originalSource)) 1955return source.RootVisual.IsAncestorOf(itemsHost);
src\Framework\System\Windows\Controls\DataGrid.cs (2)
5885if (startingElement != null && ItemsHost.IsAncestorOf(startingElement)) 8040if (InternalItemsHost != null && !this.IsAncestorOf(InternalItemsHost))
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2219if (!_findToolbar.IsAncestorOf(this))
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1133if (RenderScope != null && RenderScope.IsAncestorOf(targetUIElement))
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2678if (this != element && this.IsAncestorOf(element))
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
1992if (startingElement == null || !ItemsHost.IsAncestorOf(startingElement)) 2154if (didScroll && nextElement != null && ItemsHost.IsAncestorOf(nextElement)) 2162if ((nextElement != null) && (ItemsHost.IsAncestorOf(nextElement))) 3009if (element == null || !viewPort.IsAncestorOf(element))
src\Framework\System\Windows\Controls\ListBox.cs (1)
559if ((visualOldFocus != null && listbox.IsAncestorOf(visualOldFocus))
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
70if (InternalItemsHost != null && !this.IsAncestorOf(InternalItemsHost))
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
64if (InternalItemsHost != null && !this.IsAncestorOf(InternalItemsHost))
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
582|| !this.IsAncestorOf(visual))
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
2290&& (visi == child || visi.IsAncestorOf(child)) 2293&& this.IsAncestorOf(visi) )
src\Framework\System\Windows\Controls\Stack.cs (1)
254|| !this.IsAncestorOf(visual))
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
1447|| !this.IsAncestorOf(visual))
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
853if (!adornerLayerParent.IsAncestorOf(element))
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
881if (!compositionTarget.RootVisual.IsAncestorOf(RenderScope))
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
471if (target != _textEditor.TextView.RenderScope && target != null && (_textEditor.TextView.RenderScope).IsAncestorOf(target))
src\Framework\System\Windows\Documents\TextPointerBase.cs (2)
904Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 913if (templatedParent != null && templatedParent.IsAncestorOf( /*descendant:*/textView.RenderScope))
src\Framework\System\Windows\Input\KeyboardNavigation.cs (3)
629if (!(contentHost is Visual) || !AdornedElement.IsAncestorOf((Visual)contentHost)) 758if (contentHost is Visual && AdornedElement.IsAncestorOf((Visual)contentHost)) 2724return sourceVisual.IsAncestorOf(targetVisual);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (1)
53if (potentialDescendant != null && owningPropertyContainer.IsAncestorOf(potentialDescendant))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
556if (connector == null || (connector.StartDot != null && connector.StartDot.IsAncestorOf(e.MouseDevice.DirectlyOver as DependencyObject)))
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
996if (focusedElement == null || focusedElement == sender || ((Visual)sender).IsAncestorOf(focusedElement))