2 types derived from MenuBase
PresentationFramework (2)
System\Windows\Controls\ContextMenu.cs (1)
24
public class ContextMenu :
MenuBase
System\Windows\Controls\Menu.cs (1)
23
public class Menu :
MenuBase
61 references to MenuBase
PresentationFramework (60)
System\Windows\Controls\ComboBox.cs (2)
1682
if (Mouse.Captured == null || !
MenuBase
.IsDescendant(comboBox, Mouse.Captured as DependencyObject))
1689
if (
MenuBase
.IsDescendant(comboBox, e.OriginalSource as DependencyObject))
System\Windows\Controls\MenuItem.cs (16)
163
EventManager.RegisterClassHandler(typeof(MenuItem),
MenuBase
.IsSelectedChangedEvent, new RoutedPropertyChangedEventHandler<bool>(OnIsSelectedChanged));
1035
menuItem.RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool) e.OldValue, (bool) e.NewValue,
MenuBase
.IsSelectedChangedEvent));
1210
MenuBase
.SetSuspendingPopupAnimation(parent, ignore, true);
1234
MenuBase
.SetSuspendingPopupAnimation(this, null, false);
1241
MenuBase
.ItemContainerTemplateSelectorProperty.AddOwner(
1258
MenuBase
.UsesItemContainerTemplateProperty.AddOwner(typeof(MenuItem));
1548
if (Mouse.Captured == null || Mouse.Captured is
MenuBase
)
2192
MenuBase
parentMenu = LogicalParent as
MenuBase
;
2210
MenuBase
parentMenu = LogicalParent as
MenuBase
;
2227
MenuBase
parentMenu = LogicalParent as
MenuBase
;
2312
if ((owner != null) && ((owner is MenuItem) || (owner is
MenuBase
)))
2415
MenuBase
menuParent = parent as
MenuBase
;
System\Windows\Controls\Primitives\MenuBase.cs (32)
45
EventManager.RegisterClassHandler(typeof(
MenuBase
), MenuItem.PreviewClickEvent, new RoutedEventHandler(OnMenuItemPreviewClick));
46
EventManager.RegisterClassHandler(typeof(
MenuBase
), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown));
47
EventManager.RegisterClassHandler(typeof(
MenuBase
), Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseButtonUp));
48
EventManager.RegisterClassHandler(typeof(
MenuBase
), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture));
49
EventManager.RegisterClassHandler(typeof(
MenuBase
),
MenuBase
.IsSelectedChangedEvent, new RoutedPropertyChangedEventHandler<bool>(OnIsSelectedChanged));
51
EventManager.RegisterClassHandler(typeof(
MenuBase
), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnPromotedMouseButton));
52
EventManager.RegisterClassHandler(typeof(
MenuBase
), Mouse.MouseUpEvent, new MouseButtonEventHandler(OnPromotedMouseButton));
54
EventManager.RegisterClassHandler(typeof(
MenuBase
), Mouse.PreviewMouseDownOutsideCapturedElementEvent, new MouseButtonEventHandler(OnClickThroughThunk));
55
EventManager.RegisterClassHandler(typeof(
MenuBase
), Mouse.PreviewMouseUpOutsideCapturedElementEvent, new MouseButtonEventHandler(OnClickThroughThunk));
57
EventManager.RegisterClassHandler(typeof(
MenuBase
), Keyboard.PreviewKeyboardInputProviderAcquireFocusEvent, new KeyboardInputProviderAcquireFocusEventHandler(OnPreviewKeyboardInputProviderAcquireFocus), true);
58
EventManager.RegisterClassHandler(typeof(
MenuBase
), Keyboard.KeyboardInputProviderAcquireFocusEvent, new KeyboardInputProviderAcquireFocusEventHandler(OnKeyboardInputProviderAcquireFocus), true);
60
FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(
MenuBase
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
65
InputMethod.IsInputMethodSuspendedProperty.OverrideMetadata(typeof(
MenuBase
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
79
typeof(
MenuBase
),
98
typeof(
MenuBase
));
126
((
MenuBase
)sender).HandleMouseButton(e);
136
((
MenuBase
)sender).HandleMouseButton(e);
149
((
MenuBase
)sender).OnClickThrough(e);
216
MenuBase
menu = (
MenuBase
) sender;
232
MenuBase
menu = (
MenuBase
) sender;
324
"IsSelectedChanged", RoutingStrategy.Bubble, typeof(RoutedPropertyChangedEventHandler<bool>), typeof(
MenuBase
));
334
MenuBase
menu = (
MenuBase
)sender;
528
MenuBase
menu = sender as
MenuBase
;
541
if (Mouse.Captured == null || !
MenuBase
.IsDescendant(menu, Mouse.Captured as DependencyObject))
548
if (
MenuBase
.IsDescendant(menu, e.OriginalSource as DependencyObject))
573
MenuBase
menu = ((
MenuBase
)sender);
System\Windows\Controls\Primitives\Popup.cs (2)
1237
bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.Captured != null &&
MenuBase
.IsDescendant(root, Mouse.Captured as DependencyObject));
2670
if (((this.Child is
MenuBase
)
System\Windows\Controls\Primitives\StatusBar.cs (2)
53
MenuBase
.ItemContainerTemplateSelectorProperty.AddOwner(
70
MenuBase
.UsesItemContainerTemplateProperty.AddOwner(typeof(StatusBar));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
496
case 402: t = () => typeof(
MenuBase
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5156
Type type = typeof(System.Windows.Controls.Primitives.
MenuBase
);
5158
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
MenuBase
)), // DeclaringType
5164
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.
MenuBase
)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6813
typeof(System.Windows.Controls.Primitives.
MenuBase
),
System\Windows\Markup\KnownTypes.cs (1)
5956
case KnownElements.MenuBase: t = typeof(System.Windows.Controls.Primitives.
MenuBase
); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1484
Type type = typeof(
MenuBase
);