9 references to FindVisualAncestor
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
2000
RibbonGroup ribbonGroup = TreeHelper.
FindVisualAncestor
<RibbonGroup>(Keyboard.FocusedElement as DependencyObject);
2074
RibbonControl ribbonControl = TreeHelper.
FindVisualAncestor
<RibbonControl>(Keyboard.FocusedElement as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
553
menuItem = TreeHelper.
FindVisualAncestor
<RibbonMenuItem>(element);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1200
(TreeHelper.
FindVisualAncestor
<RibbonGalleryCategory>(focusedElement) != null))
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (3)
673
RibbonGroupItemsPanel ribbonGroupItemsPanel = TreeHelper.
FindVisualAncestor
<RibbonGroupItemsPanel>(d);
676
RibbonGroup ribbonGroup = TreeHelper.
FindVisualAncestor
<RibbonGroup>(ribbonGroupItemsPanel);
715
RibbonControlGroup controlGroup = TreeHelper.
FindVisualAncestor
<RibbonControlGroup>(d);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2693
ScrollViewer predictedFocusAncestor = TreeHelper.
FindVisualAncestor
<ScrollViewer>(predictedFocus);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1001
RibbonGroupsPanel panel = TreeHelper.
FindVisualAncestor
<RibbonGroupsPanel>(this);