Frame.CanGoForward Property

Definition

Gets a value that indicates whether there is at least one entry in forward navigation history.

public:
 property bool CanGoForward { bool get(); };
bool CanGoForward();
public bool CanGoForward { get; }
var boolean = frame.canGoForward;
Public ReadOnly Property CanGoForward As Boolean

Property Value

Boolean

bool

true if there is at least one entry in forward navigation history; false if there are no entries in forward navigation history or the Frame does not own its own navigation history.

Examples

if (contentFrame.CanGoForward)
{
    contentFrame.GoForward();
}

Remarks

You should check that the CanGoForward property is true before you call GoForward. If you call GoForward while CanGoForward is false, an exception is thrown.

Applies to

See also