-api-id | -api-type |
---|---|
M:Windows.UI.ViewManagement.ApplicationViewSwitcher.SwitchAsync(System.Int32,System.Int32) |
winrt method |
Visually switches the calling window (app view) to a specified window.
The ID of the window under preparation for display.
The ID of the calling, currently displayed window.
The asynchronous results of the operation. Use this to determine when the async call is complete.
Unlike SwitchAsync(System.Int32 viewId), this method specifies fromViewId and frees the caller from executing the call on the Application Single-Threaded Apartment (ASTA) thread of the "from" view. By explicitly passing the same view ID as that inferred through the SwitchAsync(Int32) call, the result of the calls is identical.
SwitchAsync(Int32), SwitchAsync(Int32, Int32, ApplicationViewSwitchingOptions)