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