Udostępnij za pośrednictwem


ApplicationViewSwitcher.PrepareForCustomAnimatedSwitchAsync Method

Definition

Prepares your app to visually transition between two windows with a custom animation.

public:
 static IAsyncOperation<bool> ^ PrepareForCustomAnimatedSwitchAsync(int toViewId, int fromViewId, ApplicationViewSwitchingOptions options);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> PrepareForCustomAnimatedSwitchAsync(int const& toViewId, int const& fromViewId, ApplicationViewSwitchingOptions const& options);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> PrepareForCustomAnimatedSwitchAsync(int toViewId, int fromViewId, ApplicationViewSwitchingOptions options);
function prepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, options)
Public Shared Function PrepareForCustomAnimatedSwitchAsync (toViewId As Integer, fromViewId As Integer, options As ApplicationViewSwitchingOptions) As IAsyncOperation(Of Boolean)

Parameters

toViewId
Int32

int

The ID of the window from which your app is transitioning.

fromViewId
Int32

int

The ID of the window to which your app is transitioning.

options
ApplicationViewSwitchingOptions

Enumeration value that specifies thw view switching behaviors.

Returns

Asynchronously returns true if the call succeeds; false if it does not.

Attributes

Remarks

The view ID can be obtained for the current app view with ApplicationView.Id. For a specific app view managed by the app, call ApplicationView.GetApplicationViewIdForWindow with the CoreWindow for the app view.

Applies to