Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.47 KB

applicationviewswitcher_tryshowasviewmodeasync_729393684.md

File metadata and controls

37 lines (24 loc) · 1.47 KB
-api-id -api-type
M:Windows.UI.ViewManagement.ApplicationViewSwitcher.TryShowAsViewModeAsync(System.Int32,Windows.UI.ViewManagement.ApplicationViewMode,Windows.UI.ViewManagement.ViewModePreferences)
winrt method

Windows.UI.ViewManagement.ApplicationViewSwitcher.TryShowAsViewModeAsync

-description

Displays a view as a standalone view in the desired view mode with the specified options.

-parameters

-param viewId

The ID of the window to display.

-param viewMode

The desired view mode for the window.

-param viewModePreferences

Preferred settings for the desired view mode.

-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

-examples