14 references to IsVisualAncestorOf
System.Windows.Controls.Ribbon (14)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
1858
TreeHelper.
IsVisualAncestorOf
(this, e.OriginalSource as DependencyObject))
2106
!TreeHelper.
IsVisualAncestorOf
(targetControl, Keyboard.FocusedElement as DependencyObject))
2247
!TreeHelper.
IsVisualAncestorOf
(this, focusedElement) &&
2250
!TreeHelper.
IsVisualAncestorOf
(_itemsPresenterPopup.Child, focusedElement))
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
453
TreeHelper.
IsVisualAncestorOf
(footerPaneHost, element))
494
TreeHelper.
IsVisualAncestorOf
(auxilaryPaneHost, element))
524
TreeHelper.
IsVisualAncestorOf
(auxilaryPaneHost, element))
531
!TreeHelper.
IsVisualAncestorOf
(auxilaryPaneHost, nextFocus))
545
TreeHelper.
IsVisualAncestorOf
(subMenuScrollViewer, element))
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1685
TreeHelper.
IsVisualAncestorOf
(_itemsPresenter, placementTarget))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1342
TreeHelper.
IsVisualAncestorOf
(element, Mouse.Captured as DependencyObject)));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
858
(IsFocused || (focusedElement != null && TreeHelper.
IsVisualAncestorOf
(this, focusedElement))))
1520
!TreeHelper.
IsVisualAncestorOf
(this, e.OriginalSource as DependencyObject))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
788
(!popupChild.IsKeyboardFocusWithin || TreeHelper.
IsVisualAncestorOf
(popupChild, originalSource)))