Silverlight Multithreading and the UI

 

When you wish to know if you are on the UI thread and you've no access to any UIElement how do you do it?

static bool IsUiThread()
{
    return Deployment.Current.Dispatcher.CheckAssess();
}

About the author

Brian Keating is a developer addicted to Microsoft Technologies.

Month List

Tag cloud

RecentComments

Comment RSS