Why isn't menu themed?

Mar 3, 2009 at 1:46 PM
Edited Mar 5, 2009 at 12:02 PM
My menu bar doesn't seem to be themed.  It comes out gray.  Most apps have "bluish" menu bars under Windows Vista Aero theme, but not my WPF apps.


I realized that I didn't even have to have themes in my apps to have the default themes work. However, there is that menu color problem.

So isn't anyone else seeing this problem?  And is there a solution?
Mar 5, 2009 at 12:42 PM
Mar 5, 2009 at 7:13 PM
Hi mtiede,

I'm not clear which control you're referring to exactly - are you talking about Toolbar or Menu or Ribbon?  It would be helpful if you sent a screenshot.

I know that our ToolBar control doesn't have the "bluish" Vista look.  The themes need to be updated, but it's not something we've gotten a chance to address yet.  However, you should be able to use Styles to update the look of your toolbars yourself.  This post on MSDN has XAML approximations of the Vista toolbar background: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/ccd3d34a-0ce4-49d3-8779-f0643004e3b5/.  You can just set one of those brushes to the Background of your ToolBar. 

Mar 5, 2009 at 10:32 PM
Edited Mar 5, 2009 at 10:35 PM
Nothing fancy here.  Just a plain menu.

<?xml version='1.0' encoding='utf-8' ?>
<Window x:Class="PersonalPlan.MainWindow"
    Title="Personal Plan"

   <Grid x:Name="hello2">
         Height="20" VerticalAlignment="Top">
         <MenuItem Header="_New">
            <MenuItem Header="Person" Click="NewPersonClick" />
         <MenuItem Header="View">
            <MenuItem Header="Person List" Click="ViewPersonList" />
         <MenuItem Header="Options">
            <MenuItem x:Name="SelectThemeItem" Click="SelectThemeItem_Click" Header="Select Theme" />
      <Button Height="23" HorizontalAlignment="Left" Margin="12,41,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click">Button</Button>
      <TextBox Margin="12,70,164,39" Name="textBox1" TextWrapping="Wrap" />

Here's a screenshot showing that several others have "bluish" menus while the WPF one at right is gray.
Mar 9, 2009 at 2:53 PM
I'm coming to the conclusion that maybe all the other "bluish" menu bars are that way because they have set their own color.  I have just made an app that forces using a particular theme as opposed to the current theme.  I see the controls changing and I see that the theme is taking effect.

So I'm guessing that the menus in other apps have been styled by their creators for a nicer look. 

What do other people say?  Does anyone know if the other apps have their own style for their menus that look nice in, say, Aero?