title: Binding to static property in static class in WPF
body: <p>I have a problem with binding values from static properties from static class.</p>
  
  <p>My class:</p>
  
  <pre><code>namespace MyNamespace.Data
  {
      public static class MySettings
      {
          public static Color BackgroundColor { get; set; }
          public static Color FontColor { get; set; }
      }
  }
  </code></pre>
  
  <p>XAML:</p>
  
  <pre><code>&lt;Page ...
         xmlns:colors="clr-namespace:MyNamespace.Data"
        ...&gt;
   ...
  &lt;Button Grid.Column="0" Content="Text"
          Background="{Binding Source={x:Static s:MySettings.BackgroundColor}}"
          Foreground="{Binding Source={x:Static s:MySettings.FontColor}}"
          BorderBrush="{Binding Source={x:Static s:MySettings.FontColor}}"/&gt;
  </code></pre>
  
  <p>and when I run this code Background is set OK but the rest remains unchanged..</p>