开发者

problem with terminating the running program

i am making a wpf application in which there is a main window. normally when i close the main win开发者_StackOverflow中文版dow the program used to terminate automatically but now it doesn't. altough the window is closed the program still seems to be running in visual studio. how can i fix this simple problem?


Check the value of ShutdownMode on Application.Current. You may have it set to OnExplicitShutdown, in which case it's waiting for you to call Shutdown. The default is OnLastWindowClose, but you may have changed it in App.xaml or at runtime.

If not, then you still have a window open. You can look at Application.Windows to find open windows and try to find why they haven't closed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜