title: Set button background style in wpf
body: <p>i have one button and i set button background style with <strong>LinearGradientBrush</strong>. everything works fine but when i run button and press click on button then gradient color is showing ob button with bit of animation but i have not write anything for animation for button background style.</p>
  
  <p>here is my full code</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="350" Width="525"&gt;
  
  &lt;DockPanel&gt;
      &lt;Button Content="Button" Height="23" Name="button1" Width="75"&gt;
          &lt;Button.Background&gt;
              &lt;LinearGradientBrush  StartPoint="0,0" EndPoint="1,1"&gt;
                  &lt;GradientStop Color="#FFD9EDFF" Offset="0"/&gt;
                  &lt;GradientStop Color="#FFC0DEFF" Offset="0.445"/&gt;
                  &lt;GradientStop Color="#FFAFD1F8" Offset="0.53"/&gt;
              &lt;/LinearGradientBrush&gt;
          &lt;/Button.Background&gt;
      &lt;/Button&gt;
  &lt;/DockPanel&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>i want that when user click on button then gradient animation anything like will not start on button. please guide me. thanks</p>