1

我正在使用此示例开发 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));
    }
4

1 回答 1

0

深入下面的链接是 Windows Phone 8 中使用 sqlite 的本地数据库的示例。

Windows Phone 7 通过 Sqlite Client for Windows Phone 进行本地数据库编程

SQLite-WinRT:Windows Phone 和 Windows 8 上的数据库编程

如何在 Windows Phone 中使用 SQLite

希望对你有帮助

于 2013-09-12T08:29:41.190 回答