I need to make a pause in a Windows 10 UWP App.
And the only thing i want is to wait 5 seconds to do the next action. I tried Task. Sleep but then the pressed button was frozen...
Pause should be here:
loading.IsActive = true;
//int period = 5000;
//ThreadPoolTimer PeriodicTimer =
//ThreadPoolTimer.CreatePeriodicTimer(TimeSpan.FromMilliseconds(period));
loading.IsActive = false;
How can I make a 5s pause?
await Task.Delay(5000);
would be sufficient? – Moil