I'm trying to theme my WPF app to look like...a normal desktop app.
I've seen other questions answered asking basically the same thing, but the solution doesn't seem to work for me. Suppose my menu bar is defined in XAML like so:
<DockPanel>
<Menu DockPanel.Dock="Top"
Background="{DynamicResource {x:Static SystemColors.MenuBarBrushKey}}" />
</DockPanel>
(In actuality it also contains MenuItem
entries, etc.)
Running it on Windows 10---with no changes from the default theme---my menu bar is a grayish #f0f0f0 color. If I launch other (non-metro) apps, such as Notepad, Notepad++, Evernote, Maple, Snipping Tool, and so on, the menu bar is white: #ffffff.
Can someone point me in the correct direction for correctly using the Windows system colors?