Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NavigatingCancelEventArgs::ContentStateToSave Property

 

Gets and sets the CustomContentState object that is associated with the back navigation history entry for the page being navigated from.

Namespace:   System.Windows.Navigation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
property CustomContentState^ ContentStateToSave {
	CustomContentState^ get();
	void set(CustomContentState^ value);
}

Property Value

Type: System.Windows.Navigation::CustomContentState^

The CustomContentState object that is associated with the back navigation history entry for the page being navigated from.

Navigating event is raised when navigating from one piece of content to another. The content that is being navigated from is added to back navigation history. You can set ContentStateToSave with a custom CustomContentState object to associate state information with content in navigation history.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft