title: Wpf animate background color
body: <p>I need help in taking right decision. I need to animate a background color of my user control when some event happens. When it is, I want to change the background just for 1 second and then turn it back. Which way should I go? Use color animation or timer or may by some other way.</p>
  
  <p>Solved. Thanks to all! This works good for me:</p>
  
  <pre><code>        ColorAnimation animation;
          animation = new ColorAnimation();
          animation.From = Colors.Orange;
          animation.To = Colors.Gray;
          animation.Duration = new Duration(TimeSpan.FromSeconds(1));
          this.elGrid.Background.BeginAnimation(SolidColorBrush.ColorProperty, animation);
  </code></pre>