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