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?
[code:c#]
static bool IsUiThread()
{
return Deployment.Current.Dispatcher.CheckAssess();
}
[/code]
February 21, 2010
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?
[code:c#]
static bool IsUiThread()
{
return Deployment.Current.Dispatcher.CheckAssess();
}
[/code]