我想对Background
WPF 窗口的颜色进行颜色转换。
我怎样才能做到这一点?
例如:
Brush i_color = Brushes.Red; //this is the initial color
Brush f_color = Brushes.Blue; //this is the final color
当我点击Button
button1
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.
}