我正在使用此示例开发 Windows Phone 应用程序:本地数据库示例
在该示例中,将没有实施任何编辑任务。所以,我决定实现编辑任务。但是,它对我不起作用。
如果我按下Edit
,应用程序会中断。
我不知道我犯了什么错误。
C#代码:
private void editTaskButton_Click(object sender, RoutedEventArgs e)
{
NavigationService.Navigate(
new Uri(string.Format("/NewTaskPage.xaml?Id={0}", (allToDoItemsListBox.SelectedItem as ToDoItem).ToDoItemId), UriKind.Relative));
}