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