ApplicationViewSwitcher.DisableShowingMainViewOnActivation | disableShowingMainViewOnActivation method

Applies to Windows only

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

Syntax


Windows.UI.ViewManagement.ApplicationViewSwitcher.disableShowingMainViewOnActivation();

Parameters

This method has no parameters.

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.winmd

See also

SwitchAsync
ApplicationViewSwitcher

 

 

Show:
© 2014 Microsoft