Windows Dev Center

ApplicationViewSwitcher.SwitchAsync(Int32, Int32) | switchAsync(Int32, Int32) method

Visually replaces the calling window (app view) with a specified window.

Syntax


Windows.UI.ViewManagement.ApplicationViewSwitcher.switchAsync(toViewId, fromViewId).done( /* Your success and error handlers */ );

Parameters

toViewId

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The ID of the window under preparation for display.

fromViewId

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The ID of the calling, currently displayed window.

Return value

Type: IAsyncAction

The asynchronous results of the operation. Use this to determine when the async call is complete.

Requirements (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 (operating system)

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

ApplicationViewSwitcher
SwitchAsync(Int32)
SwitchAsync(Int32, Int32, ApplicationViewSwitchingOptions)

 

 

Show:
© 2015 Microsoft