NavigatingCancelEventArgs.ContentStateToSave 属性

定义

获取或设置与 CustomContentState 要从中导航的页面的后退导航历史记录项关联的对象。

public:
 property System::Windows::Navigation::CustomContentState ^ ContentStateToSave { System::Windows::Navigation::CustomContentState ^ get(); void set(System::Windows::Navigation::CustomContentState ^ value); };
public System.Windows.Navigation.CustomContentState ContentStateToSave { get; set; }
member this.ContentStateToSave : System.Windows.Navigation.CustomContentState with get, set
Public Property ContentStateToSave As CustomContentState

属性值

CustomContentState 要从中导航的页面的后退导航历史记录条目关联的对象。

注解

Navigating 从一段内容导航到另一个内容时,将引发事件。 从中导航的内容将添加到后退导航历史记录。 可以使用自定义ContentStateToSave对象进行设置CustomContentState,以便将状态信息与导航历史记录中的内容相关联。

适用于