Hey All,
Just curious, does anyone know if there is a way to check if the current executing thread is the main WPF GUI thread?
I want to have it so that a non-threaded remoting call will fail if the current thread is the WPF GUI thread. The reason for this is that a long running call locks up the GUI, and during this time, we would like it to stay responsive.
Does checking to see if it's a background thread do the trick?
Thanks!
Just curious, does anyone know if there is a way to check if the current executing thread is the main WPF GUI thread?
I want to have it so that a non-threaded remoting call will fail if the current thread is the WPF GUI thread. The reason for this is that a long running call locks up the GUI, and during this time, we would like it to stay responsive.
Does checking to see if it's a background thread do the trick?
Thanks!
Comment