5 references to FindAncestor
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\KeyTipService.cs (1)
405
return TreeHelper.
FindAncestor
(element, delegate(DependencyObject d)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
85
Popup ancestorPopup = TreeHelper.
FindAncestor
(dismissPopupSource, delegate(DependencyObject element) { return (element is Popup); }) as Popup;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2708
RibbonMenuItem menuItem = TreeHelper.
FindAncestor
(this, delegate(DependencyObject d) { return (d is RibbonMenuItem); }) as RibbonMenuItem;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1351
return TreeHelper.
FindAncestor
(element, delegate(DependencyObject d) { return d == ancestor; }) != null;
2835
RibbonGroup ribbonGroup = TreeHelper.
FindAncestor
(fe, delegate(DependencyObject element) { return (element is RibbonGroup); }) as RibbonGroup;