C# 页面之间导航有问题

C# 页面之间导航有问题,c#,windows-phone-7,C#,Windows Phone 7,我已经为列表中的列表项添加了一个tap事件处理程序,下面给出了我的xaml代码 <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <ListBox x:Name="List" HorizontalAlignment="Left" Height="612" Margin="6,7,0,0" VerticalAlignment="Top" Width="443" >

我已经为列表中的列表项添加了一个tap事件处理程序,下面给出了我的xaml代码

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <ListBox x:Name="List" HorizontalAlignment="Left" Height="612" Margin="6,7,0,0" VerticalAlignment="Top" Width="443" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Width="400" Height="50" Tap="StackPanel_Tap_1" >
                        <TextBlock x:Name="tbName" Width="300" Height="44" FontSize="22" FontWeight="Bold" Text="{Binding Name}" />
                        <TextBlock x:Name="tbEmail" Width="100" Height="44" FontSize="22" Text="{Binding Amount}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
现在,当我点击列表时,我的导航失败,函数自动执行App.xaml.cs中的以下内置函数

 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();
        }
    }

有什么问题?我该如何更正它呢?

很可能URI
/ExpenseDetail.xaml
无效——您必须检查
e
中包含的实际异常详细信息才能确定。@McGarnagle问题只与URI有关,它在一个文件夹中。所以我把uri改为“/Folder/Page2.xaml”,这对你有用吗?是的,对我有用。。。我的文件名是“Page2”,它位于名为“folder”的文件夹中,因此uri“/folder/Page2.xaml”工作得非常好!
 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();
        }
    }