Re:Are we GUI Yet? The state of building user interfaces in ...
by pjmlp on Friday July 09, 2021 @12:06PM
(#27785147)
Sure there is.
It is all a matter of using either UWP or Win32, regarding which API to use.
Win32 use WM_CLOSE
https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-clo...
UWP use Application.Suspending
https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.app...
I just spent a few hours evaluating WinUI 3 for a new project. There's currently no way to hook into the app exit event. Want to flush your SQLite store before you exit? Tough.