9 references to FindVisualAncestor
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
1997
RibbonGroup ribbonGroup = TreeHelper.
FindVisualAncestor
<RibbonGroup>(Keyboard.FocusedElement as DependencyObject);
2071
RibbonControl ribbonControl = TreeHelper.
FindVisualAncestor
<RibbonControl>(Keyboard.FocusedElement as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
551
menuItem = TreeHelper.
FindVisualAncestor
<RibbonMenuItem>(element);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1198
(TreeHelper.
FindVisualAncestor
<RibbonGalleryCategory>(focusedElement) != null))
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (3)
666
RibbonGroupItemsPanel ribbonGroupItemsPanel = TreeHelper.
FindVisualAncestor
<RibbonGroupItemsPanel>(d);
669
RibbonGroup ribbonGroup = TreeHelper.
FindVisualAncestor
<RibbonGroup>(ribbonGroupItemsPanel);
708
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)
998
RibbonGroupsPanel panel = TreeHelper.
FindVisualAncestor
<RibbonGroupsPanel>(this);