fixes the button-light-up time (#1597)

This commit is contained in:
Tian L 2021-07-01 08:54:38 +08:00 committed by GitHub
commit d6ed2cbf51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);