fixes the button-light-up time

This commit is contained in:
tian-lt 2021-06-29 13:40:36 +08:00
commit 19c47a8049

View file

@ -51,7 +51,7 @@ namespace CalculatorApp
// go back to the normal state. // go back to the normal state.
// This timer will only fire once after which it will be destroyed // This timer will only fire once after which it will be destroyed
var timer = new DispatcherTimer(); var timer = new DispatcherTimer();
TimeSpan lightUpTime = TimeSpan.FromMilliseconds(500); // half second TimeSpan lightUpTime = TimeSpan.FromMilliseconds(50); // 5e5 100-ns
timer.Interval = lightUpTime; timer.Interval = lightUpTime;
var timerWeakReference = new WeakReference(timer); var timerWeakReference = new WeakReference(timer);