I have a Prism Application with a Bootstrapper and App.MainWindow (MetroWindow) running on MainThread and a seperate Login Window (also MetroWindow) running on sperate STA Thread to keep the UI responsive while Bootstrapper is running.
When switching the Theme in any situation the Application throws an exception: "The calling thread cannot access this object because a different thread owns it."


My assumption is that static Implementation and Event subscription from MetroWindow causes the Metro Window to crash when it does not belong to the Mainthread.
Thanks in advance,
Johannes
@johanneswanzek Please create and publish a sample app with your implementation of this situation. Thx!
Hello @punker76 Thanks for the fast response! :)
Please find my little Demo attached. I tried to keep it as simple as possible.
@johanneswanzek Thank you for the sample! This helped me to find the problem. 馃憤

Most helpful comment
@johanneswanzek Thank you for the sample! This helped me to find the problem. 馃憤