语言

CustomContentState.Replay(NavigationService, NavigationMode) 方法

定义

调用以在导航发生时将状态重新应用到内容片段。

public:
 abstract void Replay(System::Windows::Navigation::NavigationService ^ navigationService, System::Windows::Navigation::NavigationMode mode);
public abstract void Replay(System.Windows.Navigation.NavigationService navigationService, System.Windows.Navigation.NavigationMode mode);
abstract member Replay : System.Windows.Navigation.NavigationService * System.Windows.Navigation.NavigationMode -> unit
Public MustOverride Sub Replay (navigationService As NavigationService, mode As NavigationMode)

参数

navigationService
NavigationService

由 NavigationService 导航器拥有,负责应用此 CustomContentState 内容的内容。

mode
NavigationMode

一个 NavigationMode ,指定要应用的内容 CustomContentState 如何导航到。

注解

Replay 当导航历史记录中具有关联 CustomContentState 对象的项导航到时调用 。

从抽象 CustomContentState 类派生时, Replay 必须重写,尽管重写实现只需要调用基 Replay 方法。

适用于

另请参阅