public static void NavigateToMain() { Application.Current.MainWindow = chat.View as Window; login.Close(); chat.Show(); }