this is my code
I want to put the win.show in another thread but win object in the main thread. because I need to do some verification to the win.content in main thread when the win ui is refreshing in another thread.
however, I hit the exception
The calling thread cannot access this object because a different thread owns it.
public delegate void AsyncDelegate();
public class Program
static void Main(string args)
Window win = new Window();
AsyncDelegate call = new AsyncDelegate(()=>win.Show());
View Complete Post