Inheritance of System.Windows.Controls.Menu :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.Menu |
<Page xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height ="200"> <Menu Background="Gray" HorizontalAlignment="Left" VerticalAlignment="Top"> <MenuItem Header="File"> <MenuItem Header="New"/> <MenuItem Header="Open"/> <Separator/> <MenuItem Header="submenu"> <MenuItem Header="submenuitem1"/> <MenuItem Header="submenuitem2"> <MenuItem Header="submenuitem2.1"/> </MenuItem> <!--end of submenuitem2--> </MenuItem> <!--end of submenu --> </MenuItem> <!--end of File --> <MenuItem Header="View"> <MenuItem Header="Source"/> </MenuItem> </Menu> </Page>
When you are in the Internet Explorer run Menu.xaml and click the menu items !