I'm learning WP coding and I have problem that I can't solve :/
try
{
NavigationService.Navigate(new Uri("/edit.xaml", UriKind.Relative));
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(),"Error!",MessageBoxButton.OK);
}
edit.xaml is in the same directory as MainPage.xaml
It throws "NullReferenceException"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…