title: WPF, Mahapps, ThemeManager, how to convert ''Accent" into "ColorHex"?
body: <p>I'd like to get <code>System.Windows.Media.Color</code> from <code>MahApps.Metro.Accent</code>. To achieve this, I tried:</p>
  
  <pre><code>MahApps.Metro.ThemeManager.ChangeAppStyle(Application.Current,
                           MahApps.Metro.ThemeManager.GetAccent("Green"),
                           MahApps.Metro.ThemeManager.GetAppTheme("BaseLight"));
  
  // var == Tuple&lt;MahApps.Metro.AppTheme, MahApps.Metro.Accent&gt;
  var AppStyle = MahApps.Metro.ThemeManager.DetectAppStyle(Application.Current);
  Color CurrentColor = (Color)ColorConverter.ConvertFromString(AppStyle.Item2.Name);
  </code></pre>
  
  <p>Then the actual hex color of <code>MahApps.Metro.Accent</code> for <code>'Green'</code> is <code>#FF548E17</code> but the hex color of <code>CurrentColor</code> is <code>#FF008000</code>. Is there any method to get <code>#FF548E17</code> in code behind?</p>