一般关闭当前窗体使用: this.Close(); 关闭全部窗体并退出程序使用: Application.Current.Shutdown(); 转载于:https://www.cnblogs.com/dinid/articles/2018870.html