ApplicationViewSwitcher.DisableShowingMainViewOnActivation Method
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.
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.