title: How to check the current background color wpf c#
body: <p>How can I check the current color of a button here is the code so far</p>
  
  <pre><code>private void firstClick(object changer, RoutedEventArgs e)
          {
              Button x = (changer as Button);
  
              if (x backgroundcolor is blue)
              {
  
                  x.Background = new SolidColorBrush(Colors.LightBlue);
                  click++;
  </code></pre>