Переход цвета в WPF

Я хочу сделать цветовой переход цвета 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.
}
5
задан Ionică Bizău 26 December 2012 в 09:55
поделиться