Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 8.1 - Page Navigation

Coming from Windows Phone 8 I have never thought there will be a lot of changes done to the Windows Phone 8.1 code. Basically I'm just wondering how to do page navigation just like how you would do it on Windows Phone 8. To do that you should add:

NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative)); 

but that code doesn't work for Windows Phone 8.1.

Can someone please help me with this? If possible provide any links or documentation on all the new Windows Phone 8.1 methods.

like image 346
Ahmed.C Avatar asked Apr 18 '14 12:04

Ahmed.C


People also ask

Do Windows 8.1 phones still work?

Your Windows Phone 8.1 device should continue to work after July 11, 2017, but there will be no updates after July 11, 2017 (including security updates) and device backup functionality and other backend services will be phased out as described above.

Does Windows Phone have Google?

Search faster and easier with the Google Search app for Windows Phone. With Google Search, you can talk to Google and understand the world's people, places and things.

Is there a Microsoft Windows edition for mobile phones?

The company has already stopped releasing new versions of Windows 10 Mobile, with Redstone 2 being the last major Windows 10 Mobile update released. Users will still be able to create automatic or manual backups of apps and settings until March 10, 2020.

Can I still use my old Windows phone?

Yes, but there are some hurdles you'll run into over time. You can still place calls, send and receive texts, and use the apps you have installed on your Windows phone. However, there are no future updates planned for the phone and Windows no longer supports these devices.


1 Answers

In Windows Phone 8.1, Page Navigation method is like this:

Frame.Navigate(typeof(SecondPage), param); 

It means that you will navagate to 'SecondPage', and pass 'param' (a class based on object).

If you needn't to pass any parameters, You can use this:

Frame.Navigate(typeof(SecondPage)); 

You can find the documentation for this MSDN link

like image 187
Chris Shao Avatar answered Sep 20 '22 15:09

Chris Shao