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