Create Menu Bar in wpf with this simple demo example of menu bar with us. I am keeping source code and code snippets for menu bar also. Let's see what's it will give us as output,
Mainwindow
Mainwindow
<Window x:Class="MenuBar.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Menu>
<MenuItem Header="File1">
<MenuItem Header="file11"/>
<MenuItem Header="File12"/>
<MenuItem Header="File13">
<MenuItem Header="file11" IsCheckable="True"/>
<MenuItem Header="File12"/>
</MenuItem>
</MenuItem>
<MenuItem Header="File2">
<MenuItem Header="file11"/>
<MenuItem Header="File12"/>
<Separator/>
<MenuItem Header="File13" >
<MenuItem Header="file11" IsCheckable="True"/>
<MenuItem Header="File12" />
</MenuItem>
</MenuItem>
</Menu>
</Grid>
</Window>
Now this is the time for output,
0 comments:
Post a Comment