ApplicationView.TerminateAppOnFinalViewClose ApplicationView.TerminateAppOnFinalViewClose ApplicationView.TerminateAppOnFinalViewClose ApplicationView.TerminateAppOnFinalViewClose ApplicationView.TerminateAppOnFinalViewClose Property

Definition

Indicates whether the app terminates when the last window is closed.

public : static Platform::Boolean TerminateAppOnFinalViewClose { get; set; }
static bool TerminateAppOnFinalViewClose();

static void TerminateAppOnFinalViewClose(bool terminateapponfinalviewclose);
public static bool TerminateAppOnFinalViewClose { get; set; }
Public Shared ReadWrite Property TerminateAppOnFinalViewClose As bool
var bool = Windows.UI.ViewManagement.ApplicationView.terminateAppOnFinalViewClose;
applicationView.terminateAppOnFinalViewClose = bool;

Property Value

bool bool bool

true if the app terminates when the last open window is closed; false if it doesn't terminate.

Remarks

For info about using this property, see App lifecycle.

This is a static member of the ApplicationView class. For JavaScript this means that it is a method of the ApplicationView class, not of the window object that getForCurrentView creates.