📜  带有搜索栏的列表uwp c#代码示例

📅  最后修改于: 2022-03-11 14:49:15.254000             🧑  作者: Mango

代码示例1
void OnBtnPressed(object sender,EventArgs ea)  
{  
   var keyword = MainSearchBar.Text;  
   MainListView.ItemsSource =  
   names.Where(name => name.ToLower().Contains(keyword.ToLower()));  
}