The Dispatcher class currently provides support only for running code on the user interface (UI) thread from a non-UI thread.
You can access the Dispatcher object for the UI thread through the DependencyObject..::.Dispatcher and ScriptObject..::.Dispatcher properties. These are instance methods, but instances of these types are frequently inaccessible from non-UI threads. However, the application's Deployment object is a DependencyObject, and it is available on any thread through its Current property.
You can call the CheckAccess method to determine whether the caller is on the UI thread. If the caller is not on the UI thread, you can call BeginInvoke to run the specified delegate on the UI thread.