ApplicationViewSwitcher.TryShowAsStandaloneAsync ApplicationViewSwitcher.TryShowAsStandaloneAsync ApplicationViewSwitcher.TryShowAsStandaloneAsync ApplicationViewSwitcher.TryShowAsStandaloneAsync ApplicationViewSwitcher.TryShowAsStandaloneAsync Method

Definition

Overloads

TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32)

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

TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference)

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

TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

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

TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32) TryShowAsStandaloneAsync(Int32)

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

public : static IAsyncOperation<Platform::Boolean> TryShowAsStandaloneAsync(int viewId)
static IAsyncOperation<bool> TryShowAsStandaloneAsync(int32_t viewId) const;
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(Int32 viewId)
Public Shared Function TryShowAsStandaloneAsync(viewId As Int32) As IAsyncOperation(Of bool)
Windows.UI.ViewManagement.ApplicationViewSwitcher.tryShowAsStandaloneAsync(viewId).done( /* Your success and error handlers */ );
Parameters
viewId
Int32 Int32 Int32

The ID of the new window to display.

Returns

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.

See Also

TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference)

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

public : static IAsyncOperation<Platform::Boolean> TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference)
static IAsyncOperation<bool> TryShowAsStandaloneAsync(int32_t viewId, ViewSizePreference sizePreference) const;
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(Int32 viewId, ViewSizePreference sizePreference)
Public Shared Function TryShowAsStandaloneAsync(viewId As Int32, sizePreference As ViewSizePreference) As IAsyncOperation(Of bool)
Windows.UI.ViewManagement.ApplicationViewSwitcher.tryShowAsStandaloneAsync(viewId, sizePreference).done( /* Your success and error handlers */ );
Parameters
viewId
Int32 Int32 Int32

The ID of the new window to display.

sizePreference
ViewSizePreference ViewSizePreference ViewSizePreference

The preferred general sizing of the new window.

Returns

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.

See Also

TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

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

public : static IAsyncOperation<Platform::Boolean> TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference, int anchorViewId, ViewSizePreference anchorSizePreference)
static IAsyncOperation<bool> TryShowAsStandaloneAsync(int32_t viewId, ViewSizePreference sizePreference, int32_t anchorViewId, ViewSizePreference anchorSizePreference) const;
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(Int32 viewId, ViewSizePreference sizePreference, Int32 anchorViewId, ViewSizePreference anchorSizePreference)
Public Shared Function TryShowAsStandaloneAsync(viewId As Int32, sizePreference As ViewSizePreference, anchorViewId As Int32, anchorSizePreference As ViewSizePreference) As IAsyncOperation(Of bool)
Windows.UI.ViewManagement.ApplicationViewSwitcher.tryShowAsStandaloneAsync(viewId, sizePreference, anchorViewId, anchorSizePreference).done( /* Your success and error handlers */ );
Parameters
viewId
Int32 Int32 Int32

The ID of the new window to display.

sizePreference
ViewSizePreference ViewSizePreference ViewSizePreference

The preferred general sizing of the new window.

anchorViewId
Int32 Int32 Int32

The ID of the calling (anchor) window.

anchorSizePreference
ViewSizePreference ViewSizePreference ViewSizePreference

The preferred new general sizing of the calling window if this call succeeds.

Returns

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.

See Also