<Menu Height="40" HorizontalAlignment="Left" Name="menu1" VerticalAlignment="Top" IsEnabled="True" IsMainMenu="True" DataContext="{Binding}"> <Menu.Background> <ImageBrush ImageSource="/WPF_DEMO;component/Images/menu_top_bg.png" /> </Menu.Background> <MenuItem Header="Файл" FontSize="16" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" Height="40" Padding="10" IsEnabled="True"> <MenuItem.Background> <ImageBrush /> </MenuItem.Background> <MenuItem Header="Закончить работу" /> </MenuItem> <MenuItem Header="Настройки" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Height="40" Click="MenuItem_Click" Padding="10" DataContext="{Binding}" IsEnabled="True"> <MenuItem Header="Уведомления" /> <MenuItem Header="Авторизаци" /> </MenuItem> <MenuItem Header="О программе" FontSize="16" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Bottom" FlowDirection="LeftToRight" Height="40" Padding="10" Click="MenuItem_Click" IsCheckable="False" OpacityMask="#FFD15E5E" HorizontalContentAlignment="Center" VerticalContentAlignment="Top" IsEnabled="True"> <MenuItem.BorderBrush> <SolidColorBrush /> </MenuItem.BorderBrush> </MenuItem> </Menu>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)