Back to Devexpress

INavigationService.GoForward() Method

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

latest3.0 KB
Original Source

INavigationService.GoForward() Method

Performs a navigation to the next view, if allowed.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

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

Declaration

csharp
void GoForward()
vb
Sub GoForward

Remarks

The INavigationService.CanGoForward property specifies whether a navigation to the next view is allowed.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GoForward() 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-services-with-dependency-injection/CS/FrameNavigation/ViewModel/DetailViewModel.cs#L18

csharp
public void NavigateNextDetail() => navigationService.Navigate("NextDetailView", null, this);
public void NavigateForward() => navigationService.GoForward();
public bool CanNavigateForward() => navigationService != null && navigationService.CanGoForward;

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

csharp
public void NavigateForward() {
    NavigationService.GoForward();
}

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

vb
Public Sub NavigateForward()
    NavigationService.GoForward()
End Sub

See Also

INavigationService Interface

INavigationService Members

DevExpress.Mvvm Namespace