私は初心者で、Windows Phone 7.1 用のアプリを作成しています。リスト ボックスのクリック イベントを介して新しいページに移動しようとしています。基本的に、リスト ボックスのすべての項目が別のページに移動する必要があります。次のコードを試しました
private void FirstListBox_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
{
// If selected index is -1 (no selection) do nothing
if (FirstListBox.SelectedIndex == -1)
return;
// Navigate to the new page
NavigationService.Navigate(new Uri("/FirstItemPage1.xaml?selectedItem=" + FirstListBox.SelectedIndex, UriKind.Relative));
// Reset selected index to -1 (no selection)
FirstListBox.SelectedIndex = -1;
}
上記のコードはうまく機能しますが、問題はリストボックス全体を同じページに移動することですが、個々のアイテムごとに別のページに移動したいです