Search Items in Listview using List and Observable Collection


 Search Items in Listview using  Observable Collection


   SkillListItemSource = TempSkillListItemSource;
                List<Skill> Suggetions = SkillListItemSource.Where(c => c.Title.ToLower().Contains(searchtext.ToLower())).ToList();
                SkillListItemSource = new ObservableCollection<Skill>(Suggetions);
                IsVisibleSearchbarCancelButton = true;




 Search Items in Listview using List



      CommonList = TempList;
          var searchresults = CommonList.FindAll((obj) => obj.Name.ToLower().Contains(searchtext.ToLower()));
                        CommonList = searchresults;

Comments

Popular posts from this blog

Listview SelectedItem in MVVM

Button click event with current object from listview having button

SideMenu React native