Invoke a Control in WPF, C#
<p>Hi guys i am switching one of my projects from windowsforms to WPF. So far i used this piece of code to invoke my GUI objects with data from another thread:</p>

<pre><code>this.Invoke(new Action&lt;NewDiagPacketArrivedEventArgs&gt;(DoSomething), e);
</code></pre>

<p>How can I do the same thing in WPF? I found a few posts about using a dispatcher, but I could not get it to work. I would like to have a simple solution. If you know any guides on this topic I would appreciate it.</p>

<p>Thanks</p>