Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

void forwardButton_Click(object sender, RoutedEventArgs e)
{
    if (this.NavigationService.CanGoForward)
    {
        this.NavigationService.GoForward();
    }
}

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