Is there an event that is fired when the user presses the close button?
This is because the Window Closing
event is fired both when one closes the window manually (with the Close
method) and also when the user presses the [X] button...but I somehow need to know only when the user presses the [X] button not when the window is closed manually.