private void Button_Click(object sender, RoutedEventArgs e) { Window1 NewWindow = new Window1(this); NewWindow.ShowDialog(); }