Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ApplicationViewSwitcher.DisableShowingMainViewOnActivation | disableShowingMainViewOnActivation method

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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2015 Microsoft