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