MainWindow.Closing event not always raised in Silverlight 4 OOB app
问题 I've made a rather complex Silverlight 4 out-of-browser application. One of my main view models adds an event handler to the Application.Current.MainWindow.Closing event. This works fine when the application is initially run. It is able to cancel the close operation. However, sometimes after performing operations like showing and closing a ChildWindow, the MainWindow's Closing event is no longer calling my handler. In the debugger, I added a watch to the MainWindow's underlying closing event