Answers for "closing main window after clicking on a button that opens another window in wpf"

C#
0

closing main window after clicking on a button that opens another window in wpf

public partial class MainWindow : Window
{
	public MainWindow() 
	{
		InitializeComponent();
	}
	private void Button_Click(object sender, RoutedEventArgs e) 
	{
		Window1 win1 = new Window1();
		win1.Show();
		this.Close();
	}
}
Posted by: Guest on December-30-2021

Code answers related to "closing main window after clicking on a button that opens another window in wpf"

C# Answers by Framework

Browse Popular Code Answers by Language