-api-id | -api-type |
---|---|
M:Windows.UI.ViewManagement.ApplicationViewSwitcher.TryShowAsViewModeAsync(System.Int32,Windows.UI.ViewManagement.ApplicationViewMode,Windows.UI.ViewManagement.ViewModePreferences) |
winrt method |
Displays a view as a standalone view in the desired view mode with the specified options.
The ID of the window to display.
The desired view mode for the window.
Preferred settings for the desired view mode.
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.