Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Frame.CanGoBack Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

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

Property Value

Boolean

bool

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

Examples

if (contentFrame.CanGoBack)
{
 contentFrame.GoBack();
}

Remarks

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

Applies to

See also


Feedback

Was this page helpful?