I'm trying to go to another xaml page when listbox item in current xaml page clicked. Here is how I did.
private void mainList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (mainList.SelectedIndex == -1)
return;
NavigationService.Navigate(new Uri("/RegisterSurveyee.xaml",UriKind.Relative));
}
but it gives me "NULLREFERENCEEXCEPTION" error. groupID groupName are not null. When I change last sentence to this.Content=new RegisterSurveyee(), it works fine. The problem occurs only at NavigationService.Navigate(new Uri("/RegisterSurveyee.xaml",UriKind.Relative)); any help???