Wpf animate background color

前端 未结 8 2064
生来不讨喜
生来不讨喜 2020-11-30 02:41

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

8条回答
  •  长情又很酷
    2020-11-30 03:27

    This post helped me. But if it is to change the color back after 1 second like the original question says,

     ColorAnimation animation;
        animation = new ColorAnimation();
        animation.AutoReverse =true;
    

提交回复
热议问题