Udostępnij za pośrednictwem


ApplicationView.TerminateAppOnFinalViewClose Property

Definition

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

Boolean

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.

Applies to