当我使用这在我的.NET代码隐藏:NavigationServiceNavigate不工作WP7
NavigationService.Navigate(new Uri("DetailsPage.xaml", UriKind.Relative));
我重定向到App.xaml.cs并指向这个代码。
// Code to execute if a navigation fails
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
{
if (System.Diagnostics.Debugger.IsAttached)
{
// A navigation has failed; break into the debugger
System.Diagnostics.Debugger.Break();
}
}
我在做什么错?这些文件位于相同的目录中,拼写正确。我正在使用导航从MainPage.xaml
去DetailsPage.xaml
..使用应用程序栏。
NavigationService.Navigate(new Uri(“/ DetailsPage.xaml”,UriKind.Relative));谢谢! – eaglei22