Dela via


ApplicationViewSwitcher.TryShowAsStandaloneAsync Method

Definition

Overloads

TryShowAsStandaloneAsync(Int32)

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

TryShowAsStandaloneAsync(Int32, ViewSizePreference)

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

TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

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

TryShowAsStandaloneAsync(Int32)

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

public:
 static IAsyncOperation<bool> ^ TryShowAsStandaloneAsync(int viewId);
/// [Windows.Foundation.Metadata.Overload("TryShowAsStandaloneAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> TryShowAsStandaloneAsync(int const& viewId);
[Windows.Foundation.Metadata.Overload("TryShowAsStandaloneAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(int viewId);
function tryShowAsStandaloneAsync(viewId)
Public Shared Function TryShowAsStandaloneAsync (viewId As Integer) As IAsyncOperation(Of Boolean)

Parameters

viewId
Int32

int

The ID of the new window to display.

Returns

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

Attributes

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

Applies to

TryShowAsStandaloneAsync(Int32, ViewSizePreference)

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

public:
 static IAsyncOperation<bool> ^ TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference);
/// [Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithSizePreferenceAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> TryShowAsStandaloneAsync(int const& viewId, ViewSizePreference const& sizePreference);
[Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithSizePreferenceAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference);
function tryShowAsStandaloneAsync(viewId, sizePreference)
Public Shared Function TryShowAsStandaloneAsync (viewId As Integer, sizePreference As ViewSizePreference) As IAsyncOperation(Of Boolean)

Parameters

viewId
Int32

int

The ID of the new window to display.

sizePreference
ViewSizePreference

The preferred general sizing of the new window.

Returns

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

Attributes

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

Applies to

TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

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

public:
 static IAsyncOperation<bool> ^ TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference, int anchorViewId, ViewSizePreference anchorSizePreference);
/// [Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> TryShowAsStandaloneAsync(int const& viewId, ViewSizePreference const& sizePreference, int const& anchorViewId, ViewSizePreference const& anchorSizePreference);
[Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference, int anchorViewId, ViewSizePreference anchorSizePreference);
function tryShowAsStandaloneAsync(viewId, sizePreference, anchorViewId, anchorSizePreference)
Public Shared Function TryShowAsStandaloneAsync (viewId As Integer, sizePreference As ViewSizePreference, anchorViewId As Integer, anchorSizePreference As ViewSizePreference) As IAsyncOperation(Of Boolean)

Parameters

viewId
Int32

int

The ID of the new window to display.

sizePreference
ViewSizePreference

The preferred general sizing of the new window.

anchorViewId
Int32

int

The ID of the calling (anchor) window.

anchorSizePreference
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.

Attributes

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

Applies to