14 references to IsVisualAncestorOf
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
1855TreeHelper.IsVisualAncestorOf(this, e.OriginalSource as DependencyObject)) 2103!TreeHelper.IsVisualAncestorOf(targetControl, Keyboard.FocusedElement as DependencyObject)) 2244!TreeHelper.IsVisualAncestorOf(this, focusedElement) && 2247!TreeHelper.IsVisualAncestorOf(_itemsPresenterPopup.Child, focusedElement))
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
451TreeHelper.IsVisualAncestorOf(footerPaneHost, element)) 492TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, element)) 522TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, element)) 529!TreeHelper.IsVisualAncestorOf(auxilaryPaneHost, nextFocus)) 543TreeHelper.IsVisualAncestorOf(subMenuScrollViewer, element))
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1682TreeHelper.IsVisualAncestorOf(_itemsPresenter, placementTarget))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1337TreeHelper.IsVisualAncestorOf(element, Mouse.Captured as DependencyObject)));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
855(IsFocused || (focusedElement != null && TreeHelper.IsVisualAncestorOf(this, focusedElement)))) 1517!TreeHelper.IsVisualAncestorOf(this, e.OriginalSource as DependencyObject))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
785(!popupChild.IsKeyboardFocusWithin || TreeHelper.IsVisualAncestorOf(popupChild, originalSource)))