wpf how to reload a wpf application with a button code example
Example 1: wpf restart application c#
Application.Current.Shutdown();
System.Windows.Forms.Application.Restart();
Example 2: how to make a button open window in wpf
private void Button_Click(object sender, RoutedEventArgs e)
{
window2 win2 = new window2();
win2.Show();
this.Close();
}