NavigationService.GoBack Method

Navigates to the most recent entry in the back navigation history, or throws an exception if no entry exists in back navigation.

Namespace:  System.Windows.Navigation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public void GoBack()

ExceptionCondition
InvalidOperationException

There are no entries in the back navigation history.

Before calling the GoBack method, check the value of the CanGoBack property to determine if an entry exists in the back navigation history.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft