private void GetFilteredWords(string category) { CategoryFilter = category; FilteredWords = AllWords.Where(x => x.Category == CategoryFilter).ToList(); IsCatListVisible = false; IsFilteredWordsVisible = true; }
public override async void OnNavigatedTo(INavigationParameters parameters) { IsCatButtonEnabled = false; AllWords = await _databaseService.GetAllWords(); if (IsFilteredWordsVisible) { FilteredWords = AllWords.Where(x => x.Category == CategoryFilter).ToList(); } IsCatButtonEnabled = true; }