ApplicationViewSwitcher.TryShowAsStandaloneAsync(Int32) | tryShowAsStandaloneAsync(Int32) method

Applies to Windows only

Displays another window (app view) for the app on the screen, adjacent to the original window

Syntax


Windows.UI.ViewManagement.ApplicationViewSwitcher.tryShowAsStandaloneAsync(viewId).done( /* Your success and error handlers */ );

Parameters

viewId

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

The ID of the new window to display.

Return value

Type: IAsyncOperation<Boolean>

Asynchronously returns true if the call succeeds; false if it does not.

Remarks

If this method succeeds, a new window is created next to the original window. It can only be called from an ASTA (core UI) thread.

The new window has its own UI thread (ASTA) and associated CoreWindow. Developers should use thread-safe methods for communication between the windows, such as window.postMessage for JavaScript apps and the CoreDispatcher (CoreWindow.Dispatcher) messaging for C# and C++ developers.

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
TryShowAsStandaloneAsync(Int32, ViewSizePreference)
TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

 

 

Show:
© 2014 Microsoft