public static void ResetAllWindowCommandsBrush(this MetroWindow window)
 {
     if (window.OverrideDefaultWindowCommandsBrush == null)
     {
         window.InvokeCommandButtons(x => x.ClearValue(Control.ForegroundProperty));
         window.WindowButtonCommands.ClearValue(Control.ForegroundProperty);
     }
     else
     {
         window.ChangeAllWindowCommandsBrush(window.OverrideDefaultWindowCommandsBrush);
     }
 }
 private static void ChangeWindowCommandButtonsBrush(this MetroWindow window, Brush brush, Position position)
 {
     window.InvokeCommandButtons(x => x.SetValue(Control.ForegroundProperty, brush), position);
 }
 public static void ChangeWindowCommandButtonsBrush(this MetroWindow window, string brush, Position position)
 {
     window.InvokeCommandButtons(x => x.SetResourceReference(Control.ForegroundProperty, brush), position);
 }