Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Journal.GoBack() Method

In This Article

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

Namespace: DevExpress.Xpf.WindowsUI.Navigation

Assembly: DevExpress.Xpf.Controls.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public void 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