<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: WPF equivalent of InvokeRequired</title>
	<atom:link href="http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/</link>
	<description>Weblog of Siddharth Uppal</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:37:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Derek</title>
		<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-5176</link>
		<dc:creator><![CDATA[Derek]]></dc:creator>
		<pubDate>Tue, 07 Jun 2011 10:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-5176</guid>
		<description><![CDATA[Thanks for the article! Provided some much needed help to get me unstuck :-)]]></description>
		<content:encoded><![CDATA[<p>Thanks for the article! Provided some much needed help to get me unstuck <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mauricio Reyes</title>
		<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-5168</link>
		<dc:creator><![CDATA[Mauricio Reyes]]></dc:creator>
		<pubDate>Tue, 15 Feb 2011 14:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-5168</guid>
		<description><![CDATA[You were great help to solve my problem. I use a thread that is listening an UDP Port and changes a TextBlock. I was translating from Windows Forms to WPF using VB.net in a TextBlock

If this helps someone else I paste the code:

&lt;code&gt;
Public Sub ListenerUDP(ByVal [text] As String)
        If (TBVentana.Dispatcher.CheckAccess()) Then
            TBVentana.Text += [text]
        Else
            Dim deleg As New TextChanger(AddressOf ListenerUDP)
            TBVentana.Dispatcher.Invoke(deleg, System.Windows.Threading.DispatcherPriority.Normal, {[text]})
        End If
    End Sub

    Private Delegate Sub TextChanger(ByVal [text] As String)
&lt;/code&gt;

&lt;code&gt;
Public Sub ListenerUDP(ByVal [text] As String)
        If Me.RTBVentana.InvokeRequired Then
            Dim d As New SetTextCallback(AddressOf ListenerUDP)
            Me.Invoke(d, New Object() {[text]})
        Else
            Me.RTBVentana.AppendText([text])
        End If
    End Sub

    Delegate Sub SetTextCallback(ByVal [text] As String)
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>You were great help to solve my problem. I use a thread that is listening an UDP Port and changes a TextBlock. I was translating from Windows Forms to WPF using VB.net in a TextBlock</p>
<p>If this helps someone else I paste the code:</p>
<p><code><br />
Public Sub ListenerUDP(ByVal [text] As String)<br />
        If (TBVentana.Dispatcher.CheckAccess()) Then<br />
            TBVentana.Text += [text]<br />
        Else<br />
            Dim deleg As New TextChanger(AddressOf ListenerUDP)<br />
            TBVentana.Dispatcher.Invoke(deleg, System.Windows.Threading.DispatcherPriority.Normal, {[text]})<br />
        End If<br />
    End Sub</p>
<p>    Private Delegate Sub TextChanger(ByVal [text] As String)<br />
</code></p>
<p><code><br />
Public Sub ListenerUDP(ByVal [text] As String)<br />
        If Me.RTBVentana.InvokeRequired Then<br />
            Dim d As New SetTextCallback(AddressOf ListenerUDP)<br />
            Me.Invoke(d, New Object() {[text]})<br />
        Else<br />
            Me.RTBVentana.AppendText([text])<br />
        End If<br />
    End Sub</p>
<p>    Delegate Sub SetTextCallback(ByVal [text] As String)<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Navraj Singh</title>
		<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-5167</link>
		<dc:creator><![CDATA[Navraj Singh]]></dc:creator>
		<pubDate>Sun, 12 Dec 2010 08:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-5167</guid>
		<description><![CDATA[Hello,
i was banging my head all day trying to update the WPF ui from another thread with no success. and people have posted so many complex examples mentioning threads and background workers and what not. all i needed was a couple of lines of code and thats wht you gave me. thank you very much.i appreciate your efforts.

Navraj Singh]]></description>
		<content:encoded><![CDATA[<p>Hello,<br />
i was banging my head all day trying to update the WPF ui from another thread with no success. and people have posted so many complex examples mentioning threads and background workers and what not. all i needed was a couple of lines of code and thats wht you gave me. thank you very much.i appreciate your efforts.</p>
<p>Navraj Singh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dee</title>
		<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4789</link>
		<dc:creator><![CDATA[Dee]]></dc:creator>
		<pubDate>Mon, 28 Dec 2009 10:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4789</guid>
		<description><![CDATA[Thanks for the article.Works great.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the article.Works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Đonny</title>
		<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4783</link>
		<dc:creator><![CDATA[Đonny]]></dc:creator>
		<pubDate>Thu, 19 Nov 2009 20:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4783</guid>
		<description><![CDATA[Thank you, this helped me a lot.]]></description>
		<content:encoded><![CDATA[<p>Thank you, this helped me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayson Ingels</title>
		<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4782</link>
		<dc:creator><![CDATA[Jayson Ingels]]></dc:creator>
		<pubDate>Thu, 12 Nov 2009 15:24:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4782</guid>
		<description><![CDATA[I think it&#039;s worth mentioning that

Dispatcher.CheckAccess()

is hidden from intellisense for some reason.  Maybe a bug?

Note: The above statement was tested on Visual Studio 2008 Express SP1]]></description>
		<content:encoded><![CDATA[<p>I think it&#8217;s worth mentioning that</p>
<p>Dispatcher.CheckAccess()</p>
<p>is hidden from intellisense for some reason.  Maybe a bug?</p>
<p>Note: The above statement was tested on Visual Studio 2008 Express SP1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeeQ</title>
		<link>http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4744</link>
		<dc:creator><![CDATA[GeeQ]]></dc:creator>
		<pubDate>Sun, 23 Nov 2008 21:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.somecreativity.com/2008/01/10/wpf-equivalent-of-invokerequired/#comment-4744</guid>
		<description><![CDATA[Hello There,

i have a little problem:

when i trying to use your code it says that i need to add an &quot;addressof&quot; cuz its the only modifier of something - can&#039;t remember exactly. The problem is with this code:

Thanks;

private void ChangeTextProperly()   
{   
    if (this.txtMain.Dispatcher.CheckAccess())   
    {   
        this.txtMain.Text = &quot;Hello World&quot;;   
    }   
    else  
    {   
        this.txtMain.Dispatcher.Invoke(   
            System.Windows.Threading.DispatcherPriority.Normal,   
            new TextChanger(this.ChangeTextProperly));   
    }   
}]]></description>
		<content:encoded><![CDATA[<p>Hello There,</p>
<p>i have a little problem:</p>
<p>when i trying to use your code it says that i need to add an &#8220;addressof&#8221; cuz its the only modifier of something &#8211; can&#8217;t remember exactly. The problem is with this code:</p>
<p>Thanks;</p>
<p>private void ChangeTextProperly()<br />
{<br />
    if (this.txtMain.Dispatcher.CheckAccess())<br />
    {<br />
        this.txtMain.Text = &#8220;Hello World&#8221;;<br />
    }<br />
    else<br />
    {<br />
        this.txtMain.Dispatcher.Invoke(<br />
            System.Windows.Threading.DispatcherPriority.Normal,<br />
            new TextChanger(this.ChangeTextProperly));<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

