[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a value that indicates whether there is at least one entry in the forward navigation history.
Namespace:
System.Windows.Controls
Assembly:
System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)
Visual Basic (Declaration)
Public Property CanGoForward As Boolean
Get
Friend Set
Dim instance As Frame
Dim value As Boolean
value = instance.CanGoForward
public bool CanGoForward { get; internal set; }
Property Value
Type:
System..::.Boolean
true if there is at least one entry in the forward navigation history; otherwise, false.
Dependency property identifier field: CanGoForwardProperty
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 Sub BackNavButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
If (ContentFrame.CanGoBack) Then
ContentFrame.GoBack()
End If
End Sub
Private Sub ForwardNavButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
If (ContentFrame.CanGoForward) Then
ContentFrame.GoForward()
End If
End Sub
private void BackNavButton_Click(object sender, RoutedEventArgs e)
{
if (ContentFrame.CanGoBack)
{
ContentFrame.GoBack();
}
}
private void ForwardNavButton_Click(object sender, RoutedEventArgs e)
{
if (ContentFrame.CanGoForward)
{
ContentFrame.GoForward();
}
}
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference
Other Resources