Backward Navigation in Windows Phone App

Published on August 24, 2013 by abundantcode

Filed under Windows Phone

Last modified August 24, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 1 (1 votes)

This article have been viewed 3133 times

The NavigationService in Windows Phone 8 exposes the method GoBack () which lets the users to move back to the previous page in the page history stack.

Backward Navigation in Windows Phone App

Below is a sample code snippet demonstrating the Backward Navigation in Windows Phone App.

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Navigation;

using Microsoft.Phone.Controls;

using Microsoft.Phone.Shell;

namespace AbundantCodeWP8

{

public partial class ACCode : PhoneApplicationPage

{

public ACCode()

{

InitializeComponent();

}

private void Button_Click(object sender, RoutedEventArgs e)

{

if(NavigationService.CanGoBack)

NavigationService.GoBack();

}

}

}
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment


x

You might be Interested in these Posts

How to delete user account from command line in Windows 10 ?

You can delete a user account from command line in Windows 10 using the net user command and specify...

How to add new user account from command line in Windows 10 ?

You can add a new user account in Windows 10 using command prompt using the net user command and pas...

How to open display settings from command line in Windows 10 ?

The display properties can be found in the settings app in Windows 10 which lets the users to config...