To exit a .NET MAUI application, you can use the Application.Current.Quit()
method. However, this method may not work on all platforms. In some cases, you may need to use platform-specific code to exit the application. It's also worth noting that exiting an application is generally discouraged on mobile platforms, as it can lead to a poor user experience.
References: