在登录页面,我检查了有效性并做了一个简单的条件:
if (everything is good)
{
this.NavigationService.Navigate(new Uri("/implementationPage.xaml", UriKind.Relative));
}
然后出现指向此方法的错误:
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
{
if (System.Diagnostics.Debugger.IsAttached)
{
MessageBox.Show(string.Format("page {0} failed, error: {1}", e.Uri.ToString(), e.Exception.StackTrace));
e.Handled = true;
// A navigation has failed; break into the debugger
System.Diagnostics.Debugger.Break();
}
}
有谁知道我为什么会出错?