Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GoForward Method

Frame.GoForward Method

Navigates to the most recent entry in the forward navigation history, or throws an exception if no entry exists in forward navigation.

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

public void GoForward()


There are no entries in the forward navigation history.

The GoForward method throws an InvalidOperationException exception if there are no entries in the forward navigation history. To determine whether there is at least one entry in the forward navigation history, check the value of the CanGoForward property.

The following example shows event handler code for buttons on a frame that allow forward and back navigation.

private void BackNavButton_Click(object sender, RoutedEventArgs e)
    if (ContentFrame.CanGoBack)

private void ForwardNavButton_Click(object sender, RoutedEventArgs e)
    if (ContentFrame.CanGoForward)


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft