title: Getting the right WPF dispatcher in a thread
body: <p>In the constructor of an object i need to create a WPF mediaElement object:</p>
  
  <pre><code>m_videoMedia = new MediaElement();
  </code></pre>
  
  <p>but the class can also be instantiated from a other thread so i need to use </p>
  
  <pre><code>Dispatcher.Invoke(DispatcherPriority.Normal,
      (Action)(() =&gt; { m_videoMedia = new MediaElement(); })); 
  </code></pre>
  
  <p>But how can I get the right dispatcher instance in that constructor :s</p>