NavigationService.CanGoBack Property

July 28, 2014

Gets a value that indicates whether there is at least one entry in the back navigation history.

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

public bool CanGoBack { get; }

Property Value

Type: System.Boolean
true if there is at least one entry in the back navigation history; otherwise, false.

The GoBack method throws an InvalidOperationException exception if there are no entries in the back navigation history. To determine whether there is at least one entry in the back navigation history, check the value of the CanGoBack property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft