Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 8.1 Page Navigation

I'm still new with the Windows Phone development. So now I'm going to develop the Windwos Phone 8.1. I really no idea what's the problem with the page navigation. I wrote the code like this

private void hbGo_Click(object sender, RoutedEventArgs e)
{
    this.Frame.Navigate(typeof(SecondPage));
}

but it shows me the error (This page does not contain a definition for "Frame" and no extension method "Frame" accepting the first arguments) even i put like the code of bottom also the same...

Frame.Navigate(typeof(SecondPage));
like image 495
jefferyleo Avatar asked Apr 24 '14 03:04

jefferyleo


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 Facebook available for Windows Phone?

Official Facebook app for Windows Phone updated with recent beta features. Microsoft has just updated its official Facebook app for Windows Phone, adding all of the recent features that users of the beta version have been trying out.


1 Answers

The Navigation depends on the kind of your project:

If it is Windows Phone 8.1 Silverlight then you should use NavigationService.Navigate() method:

Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1

If you are targeting Windows Phone RunTime then you should use Frame.Navigate method():

Minimum supported phone Windows Phone 8.1 [Windows Runtime apps only]

like image 167
Romasz Avatar answered Sep 29 '22 14:09

Romasz