Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF
<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 1-Jul-13 3:14am
Jardin1260
Comments
Manuel john at 1-Jul-13 8:55am
   
didi you want change the navigation bar on mouse hover
Jardin1 at 1-Jul-13 9:04am
   
I want to change background item of mouse hover menu
Alexander Dymshyts at 2-Jul-13 2:43am
   
Use triggers to do that

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

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

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 105
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 22 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100