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.

NavigationService.GoBack Method ()

 

Navigates to the most recent entry in back navigation history, if there is one.

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

member GoBack : unit -> unit

Exception Condition
InvalidOperationException

GoBack is called when there are no entries in back navigation history.

Before calling GoBack, the CanGoBack property can be inspected to determine whether there are entries in back navigation history.

The following example navigates to the most recent entry in back navigation history, if one exists.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft