共用方式為


ApplicationViewSwitcher.PrepareForCustomAnimatedSwitchAsync 方法

定義

準備您的應用程式,以視覺化方式轉換兩個視窗與自訂動畫。

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)

參數

toViewId
Int32

int

應用程式正在轉換的視窗識別碼。

fromViewId
Int32

int

應用程式正在轉換之視窗的識別碼。

options
ApplicationViewSwitchingOptions

指定擲出檢視切換行為的列舉值。

傳回

如果呼叫成功,則以非同步方式傳回 true ; 如果不是, 則為 false。

屬性

備註

您可以使用 ApplicationView.Id 取得目前應用程式檢視的檢視識別碼。針對應用程式所管理的特定應用程式檢視,請使用應用程式檢視的CoreWindow呼叫ApplicationView.GetApplicationViewIdForWindow

適用於