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

Applies to Windows only

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

Syntax


Windows.UI.ViewManagement.ApplicationViewSwitcher.switchAsync(toViewId, fromViewId, options).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.

options

Type: ApplicationViewSwitchingOptions

Options for the display transition behaviors.

Return value

Type: IAsyncAction

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

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

ApplicationViewSwitcher
SwitchAsync(Int32)
SwitchAsync(Int32, Int32)

 

 

Show:
© 2014 Microsoft