I use this method to show another window from my main window.
public void DisplayLobbyWindow() { var d = Application.Current.Dispatcher; if (d.CheckAccess()) { new LobbyWindow() { Owner = this }.Show(); this.Close(); } else { d.BeginInvoke((Action)DisplayLobbyWindow); } } However, the main application closes when I show the new one. I don't want it to close, I just want to make the first window disappear and show the next one. How's that possible? Thanks.
EDIT: I guess it could be because the Owner property is set to the Main Window - however I need it to start up in the main window's location so I set the owner to it. Is there a workaround?