public async void SearchFilter(string filter) { listView.BeginRefresh(); if (string.IsNullOrWhiteSpace(filter)) { listView.ItemsSource = await todoItemDatabase.GetItemsAsync(); } else { listView.ItemsSource = todoItemDatabase.GetItemsAsync().Result.Where(x => x.Memo.ToLower().Contains(filter)); } listView.EndRefresh(); }
protected override async void OnAppearing() { base.OnAppearing(); TodoItemDatabase database = await TodoItemDatabase.Instance; listView.ItemsSource = await database.GetItemsAsync(); }
protected override async void OnAppearing() { base.OnAppearing(); listView.ItemsSource = await itemDB.GetItemsAsync(); }
protected override async void OnAppearing() { base.OnAppearing(); await itemDB.GetItemsAsync(); }