简体   繁体   中英

Windows Phone 7 Navigate To URL

I have a folder named Views and inside it I have pages I want to navigate to. There is a page inside this folder named "Y.XAML" so I'm trying to use:

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

Why is this not working?

尝试这个。

NavigationService.Navigate(new Uri("/Views/YourPage.xaml", UriKind.Relative));
  1. You Navigate to "Viev" not "Views".
  2. Its Views/Y.xaml not Views//Y.xaml

Other then that it should work. If not, provide more Information

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM