且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WPF应用程序仍然运行在后台关闭后,

更新时间:2023-02-02 16:14:07

什么是你的关机模式?如果是明确的,那是因为你没有明确关闭。如果它的主窗口,那是因为你还没有分配的主窗口 Application.MainWindow

What is your shutdown mode? If it's explicit, then it's because you're not explicitly shutting down. If it's main window, it's because you've not assigned the main window to Application.MainWindow.