Back to Devexpress

INavigationService.GoBack() Method

corelibraries-devexpress-dot-mvvm-dot-inavigationservice.md

latest2.4 KB
Original Source

INavigationService.GoBack() Method

Performs a navigation to the previous view, if allowed.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
void GoBack()
vb
Sub GoBack

Remarks

The INavigationService.CanGoBack property specifies whether a navigation to the previous view is allowed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GoBack() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-mvvm-framework-use-framenavigationservice-to-navigate-between-views-from-the-view-model/CS/DXSample/ViewModel/DetailViewModel.cs#L11

csharp
public void NavigateBack() {
    NavigationService.GoBack();
}

wpf-mvvm-framework-use-framenavigationservice-to-navigate-between-views-from-the-view-model/VB/DXSample/ViewModel/DetailViewModel.vb#L19

vb
Public Sub NavigateBack()
    NavigationService.GoBack()
End Sub

See Also

INavigationService Interface

INavigationService Members

DevExpress.Mvvm Namespace