private void button2_Click(object sender, RoutedEventArgs e)
        {
            Window2 win = new Window2();

            win.Title = "More WPF Controls";
            win.Show();
        }
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Window2 win2 = new Window2();

            win2.Show();
            this.Close();
        }
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     Window2 obj=new Window2();
     obj.Show();
 }