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

应用从中转换的窗口的 ID。

fromViewId
Int32

int

应用要转换到的窗口的 ID。

options
ApplicationViewSwitchingOptions

指定 thw 视图切换行为的枚举值。

返回

如果调用成功,则异步返回 true ; 如果 不是,则为 false。

属性

注解

可以使用 ApplicationView.Id 获取当前应用视图的视图 ID。对于由应用托管的特定应用视图,请使用 CoreWindow 为应用视图调用 ApplicationView.GetApplicationViewIdForWindow

适用于