ApplicationViewSwitcher.DisableShowingMainViewOnActivation Method

Definition

Disables the primary window (app view) when the app is activated, showing the most recently displayed window instead.

public:
 static void DisableShowingMainViewOnActivation();
 static void DisableShowingMainViewOnActivation();
public static void DisableShowingMainViewOnActivation();
function disableShowingMainViewOnActivation()
Public Shared Sub DisableShowingMainViewOnActivation ()

Remarks

By default, the app object displays the main window of the app when it is first activated. This method forces the app to display the most recently displayed window upon subsequent activations. Note that the app must call this method before completing the first non-hosted activation, and the app must also only call CoreWindow.Activate for hosted activations from the UI thread of the displayed window.

Applies to

See also