ColorAnimation colorAnimation =
new ColorAnimation((Color)ColorConverter.ConvertFromString("#BFBFBF"),
(Color)ColorConverter.ConvertFromString("#00B1EF"),
new Duration(TimeSpan.FromSeconds(0.2)));
border1.Background.BeginAnimation(SolidColorBrush.ColorProperty, colorAnimation);