(X) Hide this Join a live webcast on October 14th, 10:00 am PDT: 'MEF: Overview of the Managed Extensibility Framework in Silverlight 4' by Gill Cleeren
Learn More | Sign Up | More Webinars by SilverlightShow


Skip Navigation LinksHome / News / View News

Smart Dispatcher – Getting Back to the UI Thread

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Oct 04, 2010
(0 votes)
Tags: SmartDispatcher , Windows Phone , John Papa
Take a look at the SmartDispatcher class that John Papa has created.

Source: John Papa's Blog

Sometimes your code runs on a background thread, for example, and you need to do something to the UI. But you are on the background thread and can’t affect the UI from there, so what do you do? You use the Dispatcher (or SynchronizationContext class) to help you get back to the UI thread. There are several ways to do this, but the most common one I use is via a SmartDispatcher class I created recently.



Comments RSS RSS
No comments

Add Comment


Please add 4 and 5 and type the answer here: