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