Hey guys. I was wondering if it's possible using the WindowChrome/Metro-White theme, TitleBarContentTemplate strategy to get a Menu to appear to the LEFT of the title text, instead of the right.
Using the below code, I was able to get a Menu to appear at the far right (left of the close/minimize buttons)
<Window x:Class="testtest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"
xmlns:this="clr-namespace:testtest"
Title="Metro-Style Window"
Width="1050" Height="750" ResizeMode="CanResizeWithGrip"
TextOptions.TextFormattingMode="Display"
themes:ThemeManager.Theme="MetroWhite"
>
<themes:WindowChrome.Chrome>
<themes:WindowChrome IconMargin="10,4,10,4" >
<themes:WindowChrome.TitleBarContentTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Menu>
<MenuItem Header="FILE">
<MenuItem Command="ApplicationCommands.New" />
<MenuItem Command="ApplicationCommands.Open" />
<MenuItem Command="ApplicationCommands.Save" />
<Separator />
<MenuItem Command="ApplicationCommands.Close" />
<Separator />
<MenuItem Header="Exit" Click="OnFileExitMenuItemClick" />
</MenuItem>
</Menu>
</StackPanel>
</DataTemplate>
</themes:WindowChrome.TitleBarContentTemplate>
</themes:WindowChrome>
</themes:WindowChrome.Chrome>
<this:MainControl x:Name="mainControl" />
</Window>
But I would prefer it to appear to the left of the Title (perhaps have the title centered), and to the right of the Icon. This "feels" more natural to users in my humble opinion.