ApplicationViewSwitcher.PrepareForCustomAnimatedSwitchAsync | prepareForCustomAnimatedSwitchAsync method

Applies to Windows only

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

Syntax


Windows.UI.ViewManagement.ApplicationViewSwitcher.prepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, options).done( /* Your success and error handlers */ );

Parameters

toViewId

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

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

fromViewId

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

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

options

Type: ApplicationViewSwitchingOptions

Enumeration value that specifies thw view switching behaviors.

Return value

Type: IAsyncOperation<Boolean>

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

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.winmd

See also

ApplicationViewSwitcher

 

 

Show:
© 2015 Microsoft