3 ms·
Related tangent: 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 SQ
by mastax 5y ago
Related tangent:
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.
- pjmlp 5y agoSure 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-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.application.suspending?view=winrt-20348 https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.app...