Setting WindowButtonCommands styles in Mahapps.Metro
<p>I want to change the style of the Min, Max and Close buttons for my WPF application.</p>

<p>I'm using <a href="https://github.com/MahApps/MahApps.Metro" rel="nofollow">Mahapps.Metro</a> and I have successfully managed to achieve the result I want, but only with the obsolete <code>WindowMinButtonStyle</code>, <code>WindowMaxButtonStyle</code> and <code>WindowCloseButtonStyle</code> properties in the <code>MetroWindow</code> class. The obsolete message on for example the <code>WindowMinButtonStyle</code> property reads:</p>

<blockquote>
  <p>This property will be deleted in the next release. You should use LightMinButtonStyle or DarkMinButtonStyle in WindowButtonCommands to override the style.</p>
</blockquote>

<p>The problem is that I can't figure out how specifically to do that. The <code>MetroWindow</code> class has a field called <code>WindowButtonCommands</code>, but it is <code>internal</code>, so that seems to be the wrong tree to bark up. I'm fairly new to WPF and there is no info on how to do this in the guides on their website, so I'm pretty lost. I'm hoping someone can provide me with a short code example to point me in the right direction.</p>

<p><strong>EDIT</strong> - Here is XAML that produces the warning:</p>

<pre><code>&lt;controls:MetroWindow x:Class="Project.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
        WindowMinButtonStyle="{DynamicResource DarkWindowButtonStyle}"
        WindowMaxButtonStyle="{DynamicResource DarkWindowButtonStyle}"
        WindowCloseButtonStyle="{DynamicResource DarkWindowCloseButtonStyle}"&gt;
    &lt;Grid&gt;
    &lt;/Grid&gt;
&lt;/controls:MetroWindow&gt;
</code></pre>

<p>I should also mention I'm using the new v1.2.0 of Mahapps.Metro, but I had the same issue with the previous version.
Mahapps.Metro source code that has the <code>Obsolete</code> attributes: <a href="https://github.com/MahApps/MahApps.Metro/blob/develop/MahApps.Metro/Controls/MetroWindow.cs#L88-L93" rel="nofollow">https://github.com/MahApps/MahApps.Metro/blob/develop/MahApps.Metro/Controls/MetroWindow.cs#L88-L93</a></p>