0

Where can I put some code, that should be executed after the user closes the window by the close-icon (the X in the upper right corner)?

If I look at MainWindow.xaml in the visualisation window, the three icons in the upper right corner are shown as silhouettes, so it looks to me like the close-event can't be reached by MainWindow.xaml/MainWindow.xaml.cs in a standard way ...

else42.de
  • 465
  • 5
  • 23
  • possible duplicate of [Catch windows shutdown event in a wpf application](http://stackoverflow.com/questions/7136573/catch-windows-shutdown-event-in-a-wpf-application) – jcs Jul 03 '15 at 14:20
  • thanks a lot! Yes, your link solved my problem. – else42.de Jul 03 '15 at 14:39

0 Answers0