Journal.GoBack() Method

Navigates back to the previously displayed application screen (View).

Namespace: DevExpress.Xpf.WindowsUI.Navigation

Assembly: DevExpress.Xpf.Controls.v20.1.dll

Declaration

public void GoBack()
Public Sub GoBack

Remarks

The GoBack method takes effect if only the Journal.CanGoBack property returns true. In turn, the Journal.CanGoBack property returns true if there is more than 1 entry in the Journal's Journal.BackStack collection.

NOTE

The very first entry in the Journal.BackStack collection contains information about the initial navigation to the Frame's source View (see the NavigationFrame.Source property) that cannot be undone via the GoBack method.

Whenever the GoBack method is performed, the Journal.ForwardStack collection adds a JournalEntry containing the previously displayed View. You can navigate to it via the Journal.GoForward method.

The GoBack method is similar to the NavigationFrame.GoBack method. However, the Frame's NavigationFrame.GoBack method behaves dependent on the NavigationFrame.BackNavigationMode property and can navigate to either the previous View or to the root View. The GoBack property always navigates to the previous View. To navigate to the root View, use the Journal.GoHome method instead.

See Also