title: UWP - change background color of button
body: <p>I want to change default background of button in all conditions. But when I'm using</p>
  
  <pre><code>button.Background = new SolidColorBrush(Windows.UI.Colors.Red);
  </code></pre>
  
  <p>I'm getting a red button and gray button if button pressed.
  I thinking that I must change a style of button. But how I can set a color in style?</p>
  
  <pre><code>&lt;VisualState x:Name="Pressed"&gt;
  &lt;Storyboard&gt;
      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Background"&gt;
          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlBackgroundBaseMediumLowBrush}" /&gt;
      &lt;/ObjectAnimationUsingKeyFrames&gt;
      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="BorderBrush"&gt;
          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightTransparentBrush}" /&gt;
      &lt;/ObjectAnimationUsingKeyFrames&gt;
      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Foreground"&gt;
          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseHighBrush}" /&gt;
      &lt;/ObjectAnimationUsingKeyFrames&gt;
      &lt;PointerDownThemeAnimation Storyboard.TargetName="RootGrid" /&gt;
  &lt;/Storyboard&gt;
  </code></pre>
  
  <p></p>