Я хочу сделать цветовой переход цвета Background
окна WPF.
Как я могу это сделать?
Например:
Brush i_color = Brushes.Red; //this is the initial color
Brush f_color = Brushes.Blue; //this is the final color
Когда я нажимаю Button
кнопку 1
private void button1_Click(object sender, RoutedEventArgs e)
{
this.Background = f_color; //here the transition begins. I don't want to be quick. Maybe an interval of 4 seconds.
}