4 instantiations of RibbonContextMenu
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (4)
280_defaultRibbonClientAreaContextMenu = new RibbonContextMenu(); 293_ribbonControlContextMenu = new RibbonContextMenu(); 308_qatControlContextMenu = new RibbonContextMenu(); 325_galleryContextMenu = new RibbonContextMenu();
27 references to RibbonContextMenu
System.Windows.Controls.Ribbon (27)
Microsoft\Windows\Automation\Peers\RibbonContextMenuAutomationPeer.cs (1)
29public RibbonContextMenuAutomationPeer(RibbonContextMenu owner)
Microsoft\Windows\Controls\Ribbon\RibbonCommands.cs (6)
25AddToQuickAccessToolBarCommand = new RoutedUICommand(RibbonContextMenu.AddToQATText, "AddToQuickAccessToolBar", typeof(RibbonCommands)); 26RemoveFromQuickAccessToolBarCommand = new RoutedUICommand(RibbonContextMenu.RemoveFromQATText, "RemoveFromQuickAccessToolBar", typeof(RibbonCommands)); 27MinimizeRibbonCommand = new RoutedUICommand(RibbonContextMenu.MinimizeTheRibbonText, "MinimizeRibbon", typeof(RibbonCommands)); 28MaximizeRibbonCommand = new RoutedUICommand(RibbonContextMenu.MaximizeTheRibbonText, "MaximizeRibbon", typeof(RibbonCommands)); 29ShowQuickAccessToolBarAboveRibbonCommand = new RoutedUICommand(RibbonContextMenu.ShowQATAboveText, "ShowQuickAccessToolBarAboveRibbon", typeof(RibbonCommands)); 30ShowQuickAccessToolBarBelowRibbonCommand = new RoutedUICommand(RibbonContextMenu.ShowQATBelowText, "ShowQuickAccessToolBarBelowRibbon", typeof(RibbonCommands));
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (18)
45Type ownerType = typeof(RibbonContextMenu); 95RibbonContextMenu contextMenu = (RibbonContextMenu)d; 205((RibbonContextMenu)sender).OnClickThrough(); 237private static RibbonContextMenu _galleryContextMenu; 240private static RibbonContextMenu _ribbonControlContextMenu; 243private static RibbonContextMenu _qatControlContextMenu; 246private static RibbonContextMenu _defaultRibbonClientAreaContextMenu; 248internal static RibbonContextMenu ChooseContextMenu(DependencyObject owner) 276private static RibbonContextMenu GetDefaultRibbonClientAreaContextMenu() 289private static RibbonContextMenu GetRibbonControlContextMenu() 304private static RibbonContextMenu GetQATControlContextMenu() 321private static RibbonContextMenu GetGalleryContextMenu() 333private static RibbonMenuItem GenerateAddGalleryToQATItem(RibbonContextMenu contextMenu) 351private static RibbonMenuItem GenerateAddToOrRemoveFromQATItem(bool controlIsInQAT, RibbonContextMenu contextMenu) 372private static RibbonMenuItem GenerateQATPlacementMenuItem(RibbonContextMenu contextMenu) 450private static RibbonMenuItem GenerateMinimizeTheRibbonItem(RibbonContextMenu contextMenu) 617public static readonly DependencyProperty HasGalleryProperty = RibbonMenuButton.HasGalleryPropertyKey.DependencyProperty.AddOwner(typeof(RibbonContextMenu));
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1440RibbonContextMenu cm = RibbonContextMenu.ChooseContextMenu(d);