Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<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>
Posted
Comments
Manuel john 1-Jul-13 8:55am    
didi you want change the navigation bar on mouse hover
Jardin1 1-Jul-13 9:04am    
I want to change background item of mouse hover menu
Alexander Dymshyts 2-Jul-13 2:43am    
Use triggers to do that

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900