43 references to IsAncestorOf
PresentationCore (3)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
197
(plugInCollection.Element as Visual).
IsAncestorOf
(element as Visual))
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
532
(plugInCollection.Element as Visual).
IsAncestorOf
(element as Visual))
System\Windows\Media\VisualTreeHelper.cs (1)
225
return visual.
IsAncestorOf
(descendant);
PresentationFramework (30)
MS\Internal\Documents\DocumentGrid.cs (1)
1811
if (((Visual)this).
IsAncestorOf
(data.Visual))
MS\Internal\Documents\ScrollData.cs (1)
178
(visual != owner && !owner.
IsAncestorOf
(visual)))
MS\Internal\LayoutDump.cs (1)
911
if(visualParent.
IsAncestorOf
(visual))
System\Windows\Controls\ComboBox.cs (2)
1749
&& textBox.
IsAncestorOf
(originalSource))
1947
return source.RootVisual.
IsAncestorOf
(itemsHost);
System\Windows\Controls\DataGrid.cs (2)
5880
if (startingElement != null && ItemsHost.
IsAncestorOf
(startingElement))
8034
if (InternalItemsHost != null && !this.
IsAncestorOf
(InternalItemsHost))
System\Windows\Controls\DocumentViewer.cs (1)
2169
if (!_findToolbar.
IsAncestorOf
(this))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1125
if (RenderScope != null && RenderScope.
IsAncestorOf
(targetUIElement))
System\Windows\Controls\InkCanvas.cs (1)
2538
if (this != element && this.
IsAncestorOf
(element))
System\Windows\Controls\ItemsControl.cs (4)
1989
if (startingElement == null || !ItemsHost.
IsAncestorOf
(startingElement))
2151
if (didScroll && nextElement != null && ItemsHost.
IsAncestorOf
(nextElement))
2159
if ((nextElement != null) && (ItemsHost.
IsAncestorOf
(nextElement)))
3006
if (element == null || !viewPort.
IsAncestorOf
(element))
System\Windows\Controls\ListBox.cs (1)
604
if ((visualOldFocus != null && listbox.
IsAncestorOf
(visualOldFocus))
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
69
if (InternalItemsHost != null && !this.
IsAncestorOf
(InternalItemsHost))
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
64
if (InternalItemsHost != null && !this.
IsAncestorOf
(InternalItemsHost))
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
576
|| !this.
IsAncestorOf
(visual))
System\Windows\Controls\ScrollViewer.cs (2)
2242
&& (visi == child || visi.
IsAncestorOf
(child))
2245
&& this.
IsAncestorOf
(visi) )
System\Windows\Controls\Stack.cs (1)
248
|| !this.
IsAncestorOf
(visual))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
1496
|| !this.
IsAncestorOf
(visual))
System\Windows\Documents\AdornerLayer.cs (1)
838
if (!adornerLayerParent.
IsAncestorOf
(element))
System\Windows\Documents\ImmComposition.cs (1)
769
if (!compositionTarget.RootVisual.
IsAncestorOf
(RenderScope))
System\windows\Documents\TextEditorDragDrop.cs (1)
459
if (target != _textEditor.TextView.RenderScope && target != null && (_textEditor.TextView.RenderScope).
IsAncestorOf
(target))
System\Windows\Documents\TextPointerBase.cs (2)
899
Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).
IsAncestorOf
( /*descendant:*/textView.RenderScope),
908
if (templatedParent != null && templatedParent.
IsAncestorOf
( /*descendant:*/textView.RenderScope))
System\Windows\Input\KeyboardNavigation.cs (3)
581
if (!(contentHost is Visual) || !AdornedElement.
IsAncestorOf
((Visual)contentHost))
710
if (contentHost is Visual && AdornedElement.
IsAncestorOf
((Visual)contentHost))
2637
return sourceVisual.
IsAncestorOf
(targetVisual);
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
922
if (contentVisual != null && root != null && root.
IsAncestorOf
(contentVisual))
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
812
|| !this.
IsAncestorOf
(visual))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
899
|| !this.
IsAncestorOf
(visual))
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
137
|| !this.
IsAncestorOf
(visual))
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1262
&& textBox.
IsAncestorOf
(originalSource))
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
144
if (InternalItemsHost != null && !this.
IsAncestorOf
(InternalItemsHost))
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
677
if (InternalItemsHost != null && !this.
IsAncestorOf
(InternalItemsHost))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
618
if (InternalItemsHost != null && !this.
IsAncestorOf
(InternalItemsHost))
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
294
ribbon.
IsAncestorOf
(ribbonTab))
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
81
if (InternalItemsHost != null && !this.
IsAncestorOf
(InternalItemsHost))