Page navigation WP8.1

前端 未结 2 930
有刺的猬
有刺的猬 2021-01-23 04:52

I made an app to WP8 and I used the page navigation like NavigationService.Navigate(new Uri(...)) and worked well.
But now I\'m trying to develop a WP8.1 app an

相关标签:
2条回答
  • 2021-01-23 05:19

    For Universal Apps (Windows Runtime), you need to use the Frame.Navigate(...) overload, with the type of the page you're navigating to.

    To navigate to MainPage.xaml, you can use Frame.Navigate(typeof(MainPage));

    I'll recommend reading Quickstart: Navigating between pages (Windows Runtime apps using C#/VB/C++ and XAML) (MSDN)

    0 讨论(0)
  • 2021-01-23 05:20

    You can navigate using

    Frame.Navigate(typeof(MainPage));

    0 讨论(0)
提交回复
热议问题