11 references to ShutdownMode
PresentationFramework (10)
src\Framework\System\Windows\Application.cs (8)
977
public
ShutdownMode
ShutdownMode
990
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ShutdownMode
));
2509
private static bool IsValidShutdownMode(
ShutdownMode
value)
2511
return value ==
ShutdownMode
.OnExplicitShutdown
2512
|| value ==
ShutdownMode
.OnLastWindowClose
2513
|| value ==
ShutdownMode
.OnMainWindowClose;
2805
private
ShutdownMode
_shutdownMode =
ShutdownMode
.OnLastWindowClose;
src\Framework\System\Windows\Window.cs (2)
4705
if (((App.Windows.Count == 0) && (App.ShutdownMode ==
ShutdownMode
.OnLastWindowClose))
4706
|| ((App.MainWindow == this) && (App.ShutdownMode ==
ShutdownMode
.OnMainWindowClose)))
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
121
app.ShutdownMode =
ShutdownMode
.OnExplicitShutdown;