private void ShowLoginView1_Click(object sender, RoutedEventArgs e) { var view = new LoginView1(); view.Owner = Application.Current.MainWindow; view.Show(); }