❔ WindowsAppSDK (WinUI 3) shutdown app before window is shown?

In WindowsAppSDK (WinUI 3) is it possible to shutdown the application specifically in the OnLaunched override before the main window is shown? Application.Exit() does not work until the main window is shown.
Was this page helpful?