4 types derived from RibbonMenuButton
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
35public class RibbonApplicationMenu : RibbonMenuButton
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
37public class RibbonComboBox : RibbonMenuButton
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
27public class RibbonFilterMenuButton : RibbonMenuButton
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
32public class RibbonSplitButton : RibbonMenuButton , ICommandSource
2 instantiations of RibbonMenuButton
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1935return new RibbonMenuButton(); 1979RibbonMenuButton wrapperButton = new RibbonMenuButton();
111 references to RibbonMenuButton
System.Windows.Controls.Ribbon (111)
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (10)
35public RibbonMenuButtonAutomationPeer(RibbonMenuButton owner) 49RibbonMenuButton owner = OwningMenuButton; 72string accessKey = ((RibbonMenuButton)Owner).KeyTip; 94RibbonMenuButton owner = OwningMenuButton; 122RibbonToolTip toolTip = ((RibbonMenuButton)Owner).ToolTip as RibbonToolTip; 170RibbonMenuButton owner = OwningMenuButton; 184RibbonMenuButton owner = OwningMenuButton; 198RibbonMenuButton owner = OwningMenuButton; 276private RibbonMenuButton OwningMenuButton 280return (RibbonMenuButton)Owner;
Microsoft\Windows\Automation\Peers\RibbonQuickAccessToolBarAutomationPeer.cs (1)
44RibbonMenuButton customizeMenuButton = OwningToolBar.CustomizeMenuButton;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
63RibbonMenuButton menuButtonParent = itemsControl as RibbonMenuButton;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (2)
86RibbonMenuButton.CanUserResizeVerticallyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false, null, new CoerceValueCallback(CoerceToFalse))); 87RibbonMenuButton.CanUserResizeHorizontallyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false, null, new CoerceValueCallback(CoerceToFalse)));
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
603public static readonly DependencyProperty HasGalleryProperty = RibbonMenuButton.HasGalleryPropertyKey.DependencyProperty.AddOwner(typeof(RibbonContextMenu)); 611private set { SetValue(RibbonMenuButton.HasGalleryPropertyKey, value); }
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
182else if (popup.TemplatedParent is RibbonMenuButton)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
49RibbonToggleButton filterToggleButton = this.Template.FindName(RibbonMenuButton.ToggleButtonTemplatePartName, this) as RibbonToggleButton;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (3)
47[TemplatePart(Name = _filterMenuButtonTemplatePartName, Type = typeof(RibbonMenuButton))] 115_filterMenuButton.SetBinding(RibbonMenuButton.ItemsSourceProperty, itemsSourceBinding); 2271((RibbonGallery)d).RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent));
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (12)
1739new PropertyAndTransferMode () { Property = RibbonMenuButton.DropDownHeightProperty, Mode = TransferMode.AlwaysTransfer }, 1740new PropertyAndTransferMode () { Property = RibbonMenuButton.CanUserResizeHorizontallyProperty, Mode = TransferMode.AlwaysTransfer }, 1741new PropertyAndTransferMode () { Property = RibbonMenuButton.CanUserResizeVerticallyProperty, Mode = TransferMode.AlwaysTransfer }, 1742new PropertyAndTransferMode () { Property = RibbonMenuButton.ItemContainerTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1743new PropertyAndTransferMode () { Property = RibbonMenuButton.UsesItemContainerTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1979RibbonMenuButton wrapperButton = new RibbonMenuButton(); 2100else if (original is RibbonMenuButton) 2167Debug.Assert(clone is ButtonBase || clone is RibbonMenuButton, 2181else if (clone is RibbonMenuButton) 2205Debug.Assert(clone is ButtonBase || clone is RibbonMenuButton, 2225Debug.Assert(clone is RibbonMenuButton, 2275markupProp.DependencyProperty == RibbonMenuButton.IsDropDownOpenProperty ||
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (63)
36[TemplatePart(Name = RibbonMenuButton.ResizeThumbTemplatePartName, Type = typeof(Thumb))] 37[TemplatePart(Name = RibbonMenuButton.ToggleButtonTemplatePartName, Type = typeof(RibbonToggleButton))] 38[TemplatePart(Name = RibbonMenuButton.PopupTemplatePartName, Type = typeof(Popup))] 39[TemplatePart(Name = RibbonMenuButton.SubMenuScrollViewerTemplatePartName, Type = typeof(ScrollViewer))] 51Type ownerType = typeof(RibbonMenuButton); 77EventManager.RegisterClassHandler(ownerType, RibbonMenuButton.RibbonIsSelectedChangedEvent, new RoutedPropertyChangedEventHandler<bool>(OnRibbonIsSelectedChanged)); 95RibbonControlService.LargeImageSourceProperty.AddOwner(typeof(RibbonMenuButton)); 110RibbonControlService.SmallImageSourceProperty.AddOwner(typeof(RibbonMenuButton)); 125RibbonControlService.LabelProperty.AddOwner(typeof(RibbonMenuButton)); 140RibbonControlService.ToolTipTitleProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 155RibbonControlService.ToolTipDescriptionProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 170RibbonControlService.ToolTipImageSourceProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 185RibbonControlService.ToolTipFooterTitleProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 200RibbonControlService.ToolTipFooterDescriptionProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 215RibbonControlService.ToolTipFooterImageSourceProperty.AddOwner(typeof(RibbonMenuButton), new FrameworkPropertyMetadata(new PropertyChangedCallback(RibbonHelper.OnRibbonToolTipPropertyChanged))); 234RibbonControlService.ControlSizeDefinitionProperty.AddOwner(typeof(RibbonMenuButton)); 249RibbonControlService.IsInControlGroupProperty.AddOwner(typeof(RibbonMenuButton)); 264RibbonControlService.QuickAccessToolBarControlSizeDefinitionProperty.AddOwner(typeof(RibbonMenuButton)); 279RibbonControlService.IsInQuickAccessToolBarProperty.AddOwner(typeof(RibbonMenuButton)); 292RibbonMenuButton menuButton = (RibbonMenuButton)d; 312RibbonControlService.RibbonProperty.AddOwner(typeof(RibbonMenuButton)); 326RibbonControlService.MouseOverBorderBrushProperty.AddOwner(typeof(RibbonMenuButton)); 341RibbonControlService.MouseOverBackgroundProperty.AddOwner(typeof(RibbonMenuButton)); 356RibbonControlService.PressedBorderBrushProperty.AddOwner(typeof(RibbonMenuButton)); 371RibbonControlService.PressedBackgroundProperty.AddOwner(typeof(RibbonMenuButton)); 386RibbonControlService.FocusedBackgroundProperty.AddOwner(typeof(RibbonMenuButton)); 401RibbonControlService.FocusedBorderBrushProperty.AddOwner(typeof(RibbonMenuButton)); 428ComboBox.IsDropDownOpenProperty.AddOwner(typeof(RibbonMenuButton), 439typeof(RibbonMenuButton), 457typeof(RibbonMenuButton), 474typeof(RibbonMenuButton), 492typeof(RibbonMenuButton), 509typeof(RibbonMenuButton), 882"RibbonIsSelectedChanged", RoutingStrategy.Bubble, typeof(RoutedPropertyChangedEventHandler<bool>), typeof(RibbonMenuButton)); 893RibbonMenuButton menu = (RibbonMenuButton)sender; 1072RibbonMenuButton menuButton = (RibbonMenuButton)d; 1138RibbonMenuButton menuButton = (RibbonMenuButton)d; 1190RibbonMenuButton menuButton = (RibbonMenuButton)d; 1228RibbonMenuButton menuButton = (RibbonMenuButton)d; 1240RibbonMenuButton menuButton = (RibbonMenuButton)d; 1408RibbonMenuButton menuButton = (RibbonMenuButton)sender; 1424RibbonMenuButton ribbonMenuButton = (RibbonMenuButton)sender; 1440RibbonMenuButton ribbonMenuButton = (RibbonMenuButton)sender; 1505RibbonMenuButton menuButton = (RibbonMenuButton)sender; 1565((RibbonMenuButton)(sender)).OnAnyMouseDown(e); 1579((RibbonMenuButton)sender).OnContextMenuOpeningInternal(); 1589((RibbonMenuButton)sender).OnContextMenuClosingInternal(); 1612RibbonControlService.QuickAccessToolBarIdProperty.AddOwner(typeof(RibbonMenuButton)); 1627RibbonControlService.CanAddToQuickAccessToolBarDirectlyProperty.AddOwner(typeof(RibbonMenuButton), 1648KeyTipService.KeyTipProperty.AddOwner(typeof(RibbonMenuButton)); 1661((RibbonMenuButton)sender).OnActivatingKeyTip(e); 1674((RibbonMenuButton)sender).OnKeyTipAccessed(e);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (10)
64HasGalleryProperty.OverrideMetadata(typeof(RibbonMenuItem), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnHasGalleryChanged)), RibbonMenuButton.HasGalleryPropertyKey); 68EventManager.RegisterClassHandler(ownerType, RibbonMenuButton.RibbonIsSelectedChangedEvent, new RoutedPropertyChangedEventHandler<bool>(OnRibbonIsSelectedChanged)); 253public static readonly DependencyProperty CanUserResizeVerticallyProperty = RibbonMenuButton.CanUserResizeVerticallyProperty.AddOwner( 268public static readonly DependencyProperty CanUserResizeHorizontallyProperty = RibbonMenuButton.CanUserResizeHorizontallyProperty.AddOwner( 285public static readonly DependencyProperty DropDownHeightProperty = RibbonMenuButton.DropDownHeightProperty.AddOwner(typeof(RibbonMenuItem), 301public static readonly DependencyProperty HasGalleryProperty = RibbonMenuButton.HasGalleryPropertyKey.DependencyProperty.AddOwner(typeof(RibbonMenuItem)); 309private set { SetValue(RibbonMenuButton.HasGalleryPropertyKey, value); } 1436RibbonMenuButton menuButtonParent = parent as RibbonMenuButton; 1490menuItem.RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue, RibbonMenuButton.RibbonIsSelectedChangedEvent));
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (3)
544typeof(RibbonMenuButton), 547public RibbonMenuButton CustomizeMenuButton 549get { return (RibbonMenuButton)GetValue(CustomizeMenuButtonProperty); }
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
31[TemplatePart(Name = RibbonMenuButton.ToggleButtonTemplatePartName, Type = typeof(RibbonToggleButton))]