This documentation is archived and is not being maintained.
MenuBase Class
Visual Studio 2008
Represents a control that defines choices for users to select.
Assembly: PresentationFramework (in PresentationFramework.dll)
'Declaration <StyleTypedPropertyAttribute(Property := "ItemContainerStyle", StyleTargetType := GetType(MenuItem))> _ <LocalizabilityAttribute(LocalizationCategory.Menu)> _ Public MustInherit Class MenuBase _ Inherits ItemsControl 'Usage Dim instance As MenuBase
This class is abstract; see Inheritance Hierarchy for derived non-abstract classes usable in XAML.
The MenuBase is the base class for controls that define choices for users to select. The Menu and ContextMenu inherit from MenuBase and allow the user to select an item to invoke some action.
Content Model: MenuBase is an ItemsControl. Its content properties are Items and ItemsSource. For more information on the content model for MenuBase, see Controls Content Model Overview.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ItemsControl
System.Windows.Controls.Primitives.MenuBase
System.Windows.Controls.ContextMenu
System.Windows.Controls.Menu
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ItemsControl
System.Windows.Controls.Primitives.MenuBase
System.Windows.Controls.ContextMenu
System.Windows.Controls.Menu
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: