Page navigation WP8.1

前端 未结 2 935
有刺的猬
有刺的猬 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)

提交回复
热议问题