change color of button in wpf C# after click and after 2 minutes retain the original color

后端 未结 4 1908
眼角桃花
眼角桃花 2021-01-22 10:33

I am using this code

        Hello.Background = System.Windows.Media.Brushes.Blue;
        var dispatcherTimer = new DispatcherTimer();
        dispatcherTimer.I         


        
4条回答
  •  孤城傲影
    2021-01-22 11:07

    could you try to use a simple StoryBoard created in Blend and then apply to Button/style something like this:

    
    

提交回复
热议问题