title: How can I make a loader animation that runs while code executes?
body: <p>I have a page that runs a large amount of code to prepare the page and layout of the page for the user. </p>
  
  <p>It only needs to be used once in a blue moon. But when it does, it's about three seconds of wait for the user.</p>
  
  <p>Apparently, Microsoft only allows a 2 or less second wait. Daaaaang.</p>
  
  <p>I've optimized and optimized the code, and there's no way around it: the code is as fast as it can be. So naturally, I set out to make a loader.</p>
  
  <p>I tried to update several controls, but thanks to the UI thread being frozen, they didn't work.</p>
  
  <p>I searched and searched and searched, and found <a href="https://stackoverflow.com/questions/3806535/wpf-loading-animation-on-a-separate-ui-thread-c">this</a>, which was confusing and didn't really help, partly because of WP7's version of C# and partly because of me being a beginner at C#. </p>
  
  <p>How can I make a loader that works while the UI thread is frozen?</p>