title: Wait 5 seconds in Universal App
body: <p>I need to make a pause in a Windows 10 UWP App.</p>
  
  <p>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...</p>
  
  <p>Pause should be here:</p>
  
  <pre><code>loading.IsActive = true;
  
     //int period = 5000;
     //ThreadPoolTimer PeriodicTimer =
     //ThreadPoolTimer.CreatePeriodicTimer(TimeSpan.FromMilliseconds(period));
  
  loading.IsActive = false;
  </code></pre>
  
  <p>How can I make a 5s pause?</p>