Frame.GoBack Method

Definition

Overloads

GoBack(NavigationTransitionInfo)

Navigates to the most recent item in back navigation history, if a Frame manages its own navigation history, and specifies the animated transition to use.

GoBack()

Navigates to the most recent item in back navigation history, if a Frame manages its own navigation history.

GoBack(NavigationTransitionInfo)

Navigates to the most recent item in back navigation history, if a Frame manages its own navigation history, and specifies the animated transition to use.

public:
 virtual void GoBack(NavigationTransitionInfo ^ transitionInfoOverride) = GoBack;
/// [Windows.Foundation.Metadata.Overload("GoBackWithTransitionInfo")]
void GoBack(NavigationTransitionInfo const& transitionInfoOverride);
[Windows.Foundation.Metadata.Overload("GoBackWithTransitionInfo")]
public void GoBack(NavigationTransitionInfo transitionInfoOverride);
function goBack(transitionInfoOverride)
Public Sub GoBack (transitionInfoOverride As NavigationTransitionInfo)

Parameters

transitionInfoOverride
NavigationTransitionInfo

Info about the animated transition to use.

Attributes

Examples

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

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.

See also

Applies to

GoBack()

Navigates to the most recent item in back navigation history, if a Frame manages its own navigation history.

public:
 virtual void GoBack() = GoBack;
/// [Windows.Foundation.Metadata.Overload("GoBack")]
void GoBack();
[Windows.Foundation.Metadata.Overload("GoBack")]
public void GoBack();
function goBack()
Public Sub GoBack ()
Attributes

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