title: WPF ProgressBar usage when using Async/Await
body: <p>I have a very simple task that loads some data like so:</p>
  
  <pre><code>async Task&lt;List&lt;Invoice&gt;&gt; GetInvoices()
  {
      var invoices = await Task.Run(() =&gt; db.Invoices.AsNoTracking().ToList());
      return invoices;
  }
  </code></pre>
  
  <p>What would be the best way to use this with a progressbar? I don't need to get the percentage loaded (although that would be useful), I simply need to show/hide the progressbar at start and finish of loading data.  Is there a way to create a completed or finished method perhaps?</p>
  
  <p>I am very new to async/await so kid gloves please!</p>