Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.86 KB

applicationviewswitcher_tryshowasstandaloneasync_1288540426.md

File metadata and controls

39 lines (27 loc) · 1.86 KB
-api-id -api-type
M:Windows.UI.ViewManagement.ApplicationViewSwitcher.TryShowAsStandaloneAsync(System.Int32,Windows.UI.ViewManagement.ViewSizePreference,System.Int32,Windows.UI.ViewManagement.ViewSizePreference)
winrt method

Windows.UI.ViewManagement.ApplicationViewSwitcher.TryShowAsStandaloneAsync

-description

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

-parameters

-param viewId

The ID of the new window to display.

-param sizePreference

The preferred general sizing of the new window.

-param anchorViewId

The ID of the calling (anchor) window.

-param anchorSizePreference

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.

-examples

-see-also

TryShowAsStandaloneAsync(Int32), TryShowAsStandaloneAsync(Int32, ViewSizePreference)