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