All i want to do is change color of the button triggered on specific moment while mouse is over it. Here is my code which is changing colour when mouse isnt over the button which isnt my goal.
btSubmit.Content = "Get ready!";
await PutDelay(_timeRandomizer.GiveTime());
btSubmit.Background = Brushes.Green; //Here im trying to change the background
btSubmit.Content = "Now!";
_stopwatch.Start();
Here is an example that what i want to achieve
https://www.humanbenchmark.com/tests/reactiontime
Do u have any clues?