根据给定文本过滤分组的LongList项目

时间:2014-09-15 09:38:45

标签: c# windows-phone-8 longlistselector

我使用本指南实现了我的分组LongList示例:http://www.csharpteacher.com/2014/02/a-z-grouped-list-in-longlistselector.html

我的ItemsSource任务:

var groupedCompaniesList =
                from list in Companies
                group list by list.category into listByGroup
                select new KeyedList<string, Company>(listByGroup);

MainLongListSelector.ItemsSource = new List<KeyedList<string, Company>>(groupedCompaniesList);

我尝试在此列表中添加搜索功能,但我无法找到使其正常工作的方法。例如,我尝试在上面的代码中添加它:

where list.company.StartsWith(searchbox.Text.ToLower())

没有锻炼。

有什么建议吗?

0 个答案:

没有答案