MainThreadDispatcher Property
Gets or sets the main application thread. Some properties retrieval (ie. File System Icon) and other operations can only be performed properly on the main application thread.
Syntax
public static System.Windows.Threading.Dispatcher MainThreadDispatcher {get; set;}Public Shared Property MainThreadDispatcher As System.Windows.Threading.Dispatcher