1

私のアプリはここの「Debugger.Break」で失敗しています:

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

...そして私は得る: " System.Reflection.TargetInvocationExceptionは未処理でしたメッセージ:タイプ'System.Reflection.TargetInvocationException'の未処理の例外がSystem.Windows.ni.dllで発生しました"

私のコードはこれまでのところ非常に単純です。メインページに別のページに移動しようとするHyperlinkBut​​tonがあります。

//winrt-xaml:
        <HyperlinkButton x:Name="hyperlinkButtonManageInvitations" Margin="24" Grid.Row="1" Tap="HyperlinkButtonManageInvitations_OnTap">Manage Invitations</HyperlinkButton>

// C#コードビハインド:

private void HyperlinkButtonManageInvitations_OnTap(object sender, GestureEventArgs e)
{
    NavigationService.Navigate(
        new Uri("//TaSLs_Pages/InvitationManagePage.xaml", UriKind.Relative));
}

Resharperを使用してMainPage.xaml(および* .cs)をTaSLs_Pagesサブフォルダーに移動しました。それは問題ではないでしょう?

4

1 に答える 1

1

NavigationFailedEventArgsを確認してください。e.Exception.Messageで例外を確認できます

于 2014-07-23T08:40:30.033 に答える