title: Correct way to get the CoreDispatcher in a Windows Store app
body: <p>I'm building a Windows Store app, and I have some code that needs to be posted to the UI thread.</p>
  
  <p>For that, i'd like to retrieve the CoreDispatcher and use it to post the code.</p>
  
  <p>It seems that there are a few ways to do so:</p>
  
  <pre><code>// First way
  Windows.ApplicationModel.Core.CoreApplication.GetCurrentView().CoreWindow.Dispatcher;
  
  // Second way
  Window.Current.Dispatcher;
  </code></pre>
  
  <p>I wonder which one is correct? or if both are equivalent?</p>