Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Determines if caller is required to use Invoke/BeginInvoke to access UI thread
- /// </summary>
- public static bool InvokeRequired()
- {
- return Application.Current.Dispatcher.Thread.ManagedThreadId != Thread.CurrentThread.ManagedThreadId;
- }
Advertisement
Add Comment
Please, Sign In to add comment