title: C# Resource Value Changed With Button
body: <p>I have a simple UWP application a simple calculator. So I set all the properties of the buttons through a style like this.</p>
  
  <pre><code>&lt;Page.Resources&gt;
      &lt;Style TargetType="Button" x:Key="CalculatorButtons"&gt;
          &lt;Setter Property="VerticalAlignment" Value="Stretch" /&gt;
          &lt;Setter Property="HorizontalAlignment" Value="Stretch" /&gt;
          &lt;Setter Property="FontSize" Value="30" /&gt;
          &lt;Setter Property="BorderThickness" Value="1" /&gt;
          &lt;Setter Property="BorderBrush" Value="Black" /&gt;
          &lt;Setter Property="Background" Value="AntiqueWhite" /&gt;
      &lt;/Style&gt;
  &lt;/Page.Resources&gt;
  </code></pre>
  
  <p>I want to make a button that will change the Value of the Background property inside the Style i have made. My button code starts like this</p>
  
  <pre><code>private void ColorChange_Click(object sender, RoutedEventArgs e)
  {
  
  }
  </code></pre>
  
  <p>I am new in this and I can't find a way to access it and change it from here.</p>