title: Replace Window title with Menu for MahApps.Metro borderless Window
body: <p>I'm developing a border less WPF window application with <code>MahApps.Metro</code> control.</p>
  
  <p>I want to have my menu where normally the window title goes (Title bar's left side). Like below image: </p>
  
  <p><img src="https://i.stack.imgur.com/ys9oH.jpg" alt="enter image description here"></p>
  
  <p>What I have got so far looks like below image:</p>
  
  <p><img src="https://i.stack.imgur.com/wwYnK.jpg" alt="enter image description here"></p>
  
  <p>I have tried setting <code>HorizontalAlignment="Left"</code>, but the menu group remains on the right side of the title bar.</p>
  
  <p>Code for this:</p>
  
  <pre><code>&lt;Controls:MetroWindow.WindowCommands&gt;        
      &lt;Controls:WindowCommands HorizontalAlignment="Left"&gt;
          &lt;Menu IsMainMenu="True" x:Name="mnuMainMenu" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Background="Transparent" Width="Auto" &gt;
  
              &lt;MenuItem Header="_File" x:Name="mnuFile" Visibility="Visible" Background="Transparent"&gt;
                  &lt;MenuItem Header="_Open" x:Name="mnuOpen" Background="Transparent" Command="{Binding MenuOpenCommand}" /&gt;
  
                  &lt;MenuItem Header="_Exit" x:Name="mnuExit" Click="btnExit_Click" Background="Transparent"/&gt;
              &lt;/MenuItem&gt;
  
              &lt;MenuItem Header="_Tools"&gt;
                  &lt;MenuItem Header="_Repeat" x:Name="mnuRepete" Background="Transparent" &gt;
                      &lt;MenuItem Header="Repeat None" Command="{Binding RepeatNoneCommand}" IsCheckable="True"/&gt;
                      &lt;MenuItem Header="Repeat One" Command="{Binding RepeatOneCommand}" IsCheckable="True"/&gt;
                      &lt;MenuItem Header="Repeat All" Command="{Binding RepeatAllCommand}" IsCheckable="True"/&gt;
                  &lt;/MenuItem&gt;
              &lt;/MenuItem&gt;
  
              &lt;MenuItem Header="_Store" x:Name="smOnlineMode" Background="Transparent" Click="smOnlineMode_Click" IsCheckable="True" /&gt;
              &lt;MenuItem Header="_Play Mode" x:Name="smPlayMode" Background="Transparent" Click="smPlayMode_Click" IsCheckable="True" IsChecked="True"/&gt;
  
  
              &lt;MenuItem Header="_Play"&gt;
                  &lt;MenuItem Header="_Play" x:Name="mnuPlay" Background="Transparent"  Command="{Binding PlayCommand}"/&gt;
                  &lt;MenuItem Header="P_ause" x:Name="mnuPause" Background="Transparent" Command="{Binding PauseCommand}"/&gt;
                  &lt;MenuItem Header="_Stop" x:Name="mnuStop" Background="Transparent" Command="{Binding StopCommand}"/&gt;
                  &lt;Separator/&gt;
                  &lt;MenuItem Header="_Next" x:Name="mnuNext" Background="Transparent" Command="{Binding NextTrackCommand}"/&gt;
                  &lt;MenuItem Header="P_revious" x:Name="mnuPrevious" Background="Transparent" Command="{Binding PreviousTrackCommand}" /&gt;
                  &lt;MenuItem Header="_Mute/UnMute" x:Name="smnuMute" Background="Transparent" Command="{Binding MuteSoundCommand}" /&gt;
                  &lt;!--Command="{Binding MuteSoundCommand}"--&gt;
  
              &lt;/MenuItem&gt;
  
              &lt;MenuItem Header="_Help"&gt;
  
                  &lt;MenuItem Header="_Help" x:Name="smnuOnlineHelp" Background="Transparent" Click="smnuHelp_Click" /&gt;
                  &lt;Separator /&gt;
                  &lt;MenuItem Header="_Register Player" x:Name="smnuRegister" Background="Transparent" Click="smnuRegisterPlayer" /&gt;
  
                  &lt;MenuItem Header="_About Codero Music Player" x:Name="smnuAbout" Background="Transparent" Click="smnuAboutClick" /&gt;
              &lt;/MenuItem&gt;
          &lt;/Menu&gt;
      &lt;/Controls:WindowCommands&gt;
  &lt;/Controls:MetroWindow.WindowCommands&gt;
  </code></pre>