10 references to ShutdownMode
PresentationFramework (10)
System\Windows\Application.cs (8)
847public ShutdownMode ShutdownMode 860throw new InvalidEnumArgumentException("value", (int)value, typeof(ShutdownMode)); 2295private static bool IsValidShutdownMode(ShutdownMode value) 2297return value == ShutdownMode.OnExplicitShutdown 2298|| value == ShutdownMode.OnLastWindowClose 2299|| value == ShutdownMode.OnMainWindowClose; 2522private ShutdownMode _shutdownMode = ShutdownMode.OnLastWindowClose;
System\Windows\Window.cs (2)
4551if (((App.Windows.Count == 0) && (App.ShutdownMode == ShutdownMode.OnLastWindowClose)) 4552|| ((App.MainWindow == this) && (App.ShutdownMode == ShutdownMode.OnMainWindowClose)))