GoForward Method
Collapse the table of content
Expand the table of content

NavigationService.GoForward Method ()

 

Navigate to the most recent entry in forward navigation history, if there is one.

Namespace:   System.Windows.Navigation
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Sub GoForward

Exception Condition
InvalidOperationException

GoForward is called when there are no entries in forward navigation history.

Before calling GoForward, the CanGoForward property can be inspected to determine whether there are entries in forward navigation history.

The following example navigates to the most recent entry in forward navigation history, if one exists.

Private Sub forwardButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    If Me.NavigationService.CanGoForward Then
        Me.NavigationService.GoForward()
    End If
End Sub

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft