Found a todo list and it is showing the saved items in a Listview , i change it so i only see ID nr 1 in the listview.
In OnAppearing it is filling the Listview , but what to change it to show " Name " to an Editor or Entry ?
But how do i show the Name of ID nr 1 in a Editor or Entry ?
- public class TodoItem
- {
- [PrimaryKey, AutoIncrement]
- public int ID { get; set; }
- public string Name { get; set; }
- public string Notes { get; set; }
- public bool Done { get; set; }
- }
- public Task GetItemsNotDoneAsync()
- {
- return Database.QueryAsync<TodoItem>("SELECT * FROM [TodoItem] WHERE [ID] = 1"); }
- protected override async void OnAppearing()
- {
- base.OnAppearing();
- listView.ItemsSource = await App.Database.GetItemsNotDoneAsync();
- }