C# 尝试加载windows phone 8应用程序以导航到其他页面时出错

C# 尝试加载windows phone 8应用程序以导航到其他页面时出错,c#,C#,每次运行App.xaml页面时,它都会将我带到App.xaml页面。然后显示以下错误: // Code to execute if a navigation fails private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) { if (Debugger.IsAttached) { // A navigation has failed; break in

每次运行App.xaml页面时,它都会将我带到App.xaml页面。然后显示以下错误:

// Code to execute if a navigation fails
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
{
    if (Debugger.IsAttached)
    {
        // A navigation has failed; break into the debugger
        Debugger.Break();
    }

确保您正确提到了目标页面的uri。它应该是这样的:/folder\u name\u如果使用/page\u name.xaml

例如:

NavigationService.Navigate(新Uri(“/NewPage.xaml”,UriKind.Relative))

假设NewPage.xaml位于名为Views的文件夹中,则会是这样: NavigationService.Navigate(新Uri(“/Views/NewPage.xaml”,UriKind.Relative))


有关更多信息,请查看此

您是否有导航到的链接示例?您能否确定在代码中调用此故障处理代码的位置并发布该代码?