Skip to content

ShutdownMode enumeration

Controls when the application’s run loop ends automatically as windows close.

public enum ShutdownMode
name value description
OnLastWindowClose 0 Shut down when the last window closes (the default).
OnMainWindowClose 1 Shut down when the main window (the one passed to Run) closes.
OnExplicitShutdown 2 Never shut down automatically; the loop ends only via Shutdown.