private void Button_Click(object sender, RoutedEventArgs e) { var window = new SecondWindow(); window.ShowDialog(); }