9 references to FindVisualAncestor
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
1971
RibbonGroup ribbonGroup = TreeHelper.
FindVisualAncestor
<RibbonGroup>(Keyboard.FocusedElement as DependencyObject);
2045
RibbonControl ribbonControl = TreeHelper.
FindVisualAncestor
<RibbonControl>(Keyboard.FocusedElement as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
550
menuItem = TreeHelper.
FindVisualAncestor
<RibbonMenuItem>(element);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1197
(TreeHelper.
FindVisualAncestor
<RibbonGalleryCategory>(focusedElement) != null))
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (3)
665
RibbonGroupItemsPanel ribbonGroupItemsPanel = TreeHelper.
FindVisualAncestor
<RibbonGroupItemsPanel>(d);
668
RibbonGroup ribbonGroup = TreeHelper.
FindVisualAncestor
<RibbonGroup>(ribbonGroupItemsPanel);
704
RibbonControlGroup controlGroup = TreeHelper.
FindVisualAncestor
<RibbonControlGroup>(d);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2691
ScrollViewer predictedFocusAncestor = TreeHelper.
FindVisualAncestor
<ScrollViewer>(predictedFocus);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
991
RibbonGroupsPanel panel = TreeHelper.
FindVisualAncestor
<RibbonGroupsPanel>(this);