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