-api-id | -api-type |
---|---|
M:Windows.UI.ViewManagement.ApplicationViewSwitcher.TryShowAsStandaloneAsync(System.Int32,Windows.UI.ViewManagement.ViewSizePreference,System.Int32,Windows.UI.ViewManagement.ViewSizePreference) |
winrt method |
Displays another window (app view) for the app on the screen, adjacent to the original window.
The ID of the new window to display.
The preferred general sizing of the new window.
The ID of the calling (anchor) window.
The preferred new general sizing of the calling window if this call succeeds.
Asynchronously returns true if the call succeeds; false if it does not.
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.
TryShowAsStandaloneAsync(Int32), TryShowAsStandaloneAsync(Int32, ViewSizePreference)