janbaer
2/1/2013 - 11:43 AM

Thread.IsUIThread

Thread.IsUIThread

    public static class ThreadExtensions
    {
        public static bool IsUIThread(this Thread thread)
        {
            return SynchronizationContext.Current != null;
        }
    }