【发布时间】:2013-05-21 12:32:13
【问题描述】:
我在 windows phone 8 项目上。在 Visual Studio 中使用 xaml 进行操作。
我在这个项目中有 4 个枢轴项。
我想用
导航主页(我的第一个数据透视项目)手机底部的菜单;
<shell:ApplicationBarIconButton IconUri="Images/appbar_home.png" Text="Home" Click="ApplicationBarIconButton_Click_2"/>
在点击事件时我写了这个;
private void ApplicationBarIconButton_Click_2(object sender, EventArgs e)
{
NavigationService.Navigate(new Uri("/MainPage.xaml?PivotMain.SelectedIndex = 0", UriKind.Relative));
}
当我运行该程序时,它运行良好,当我转到其他枢轴项目并单击该主页按钮时,它会运行,但如果我再次四处走动并单击按钮,它就不起作用。为什么?
我需要解决这个问题。
感谢您的回答。
【问题讨论】:
标签: c# xaml windows-phone-8