I have an application where I've just recently discovered will also have to run in a mirrored window at a completely different resolution.
This link describes how multiple windows can each have different UI threads
I think my windows will need to run on different UI threads for performance reasons. So, now I need to mirror the viewable area of one window on another window. I have tried to set the DataContext of the second window to the first window but that causes an exception since they are different threads (a modified version of the above link).
Thread thread = new Thread(() =>
{
MainWindow w = new MainWindow();
w.DataContext = MainWindow.DataContextProperty;
w.Show();
w.Closed += (sender2, e2) =>
w.Dispatcher.InvokeShutdown();
System.Windows.Threading.Dispatcher.Run();
});
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
Any ideas?