ProjectionManager.SwapDisplaysForViewsAsync(Int32, Int32) ProjectionManager.SwapDisplaysForViewsAsync(Int32, Int32) ProjectionManager.SwapDisplaysForViewsAsync(Int32, Int32) ProjectionManager.SwapDisplaysForViewsAsync(Int32, Int32) ProjectionManager.SwapDisplaysForViewsAsync(Int32, Int32) Method

Definition

Asynchronously swaps the calling window (app view) with the window displayed on the projector or other secondary display. The result is that the calling window is displayed on the projector, and the formerly projected window is displayed on the device screen.

public : static IAsyncAction SwapDisplaysForViewsAsync(int projectionViewId, int anchorViewId)
static IAsyncAction SwapDisplaysForViewsAsync(int32_t projectionViewId, int32_t anchorViewId) const;
public static IAsyncAction SwapDisplaysForViewsAsync(Int32 projectionViewId, Int32 anchorViewId)
Public Shared Function SwapDisplaysForViewsAsync(projectionViewId As Int32, anchorViewId As Int32) As IAsyncAction
Windows.UI.ViewManagement.ProjectionManager.swapDisplaysForViewsAsync(projectionViewId, anchorViewId).done( /* Your success and error handlers */ );

Parameters

projectionViewId
Int32 Int32 Int32

The ID of the window currently displayed by the projector.

anchorViewId
Int32 Int32 Int32

The ID of the window to swap with the projected window.

Returns

The asynchronous results of the operation. Use this to determine when the async call is complete.