Frame.GoBack Method
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.
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)
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()
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.