ApplicationView.TerminateAppOnFinalViewClose Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether the app terminates when the last window is closed.
public:
static property bool TerminateAppOnFinalViewClose { bool get(); void set(bool value); };
static bool TerminateAppOnFinalViewClose();
static void TerminateAppOnFinalViewClose(bool value);
public static bool TerminateAppOnFinalViewClose { get; set; }
var boolean = ApplicationView.terminateAppOnFinalViewClose;
ApplicationView.terminateAppOnFinalViewClose = boolean;
Public Shared Property TerminateAppOnFinalViewClose As Boolean
Property Value
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.