Share via


ApplicationViewSwitcher.PrepareForCustomAnimatedSwitchAsync メソッド

定義

カスタム アニメーションを使用して 2 つのウィンドウ間を視覚的に切り替えるアプリを準備します。

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

アプリの切り替え元のウィンドウの ID。

fromViewId
Int32

int

アプリの移行先となるウィンドウの ID。

options
ApplicationViewSwitchingOptions

thw ビューの切り替え動作を指定する列挙値。

戻り値

呼び出しが成功した場合、非同期的に true を返します。 そうでない 場合は false。

属性

注釈

ApplicationView.Id を使用して、現在のアプリ ビューのビュー ID を取得できます。アプリによって管理される特定のアプリ ビューの場合は、アプリ ビューの CoreWindow を使用して ApplicationView.GetApplicationViewIdForWindow を呼び出します。

適用対象