From 02f57a0351ea6cbb88a3b5ba75f6e439d9c9790b Mon Sep 17 00:00:00 2001 From: michael-hawker <24302614+michael-hawker@users.noreply.github.com> Date: Fri, 1 Sep 2023 11:34:30 -0700 Subject: [PATCH] Fix Sample App Search Wasn't lowering the query so wasn't doing case-insensitive as desired Also add searching descriptions of samples --- CommunityToolkit.App.Shared/Pages/Shell.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs b/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs index c6781a95..8615df7f 100644 --- a/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs +++ b/CommunityToolkit.App.Shared/Pages/Shell.xaml.cs @@ -162,8 +162,8 @@ private void searchBox_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChan } else { - var query = searchBox.Text; - searchBox.ItemsSource = samplePages?.Where(s => s!.Title!.ToLower().Contains(query) || s!.Keywords!.ToLower().Contains(query) || s!.Category!.ToString().ToLower().Contains(query) || s!.Subcategory!.ToString().ToLower().Contains(query)).ToArray(); ; + var query = searchBox.Text.ToLower(); + searchBox.ItemsSource = samplePages?.Where(s => s!.Title!.ToLower().Contains(query) || s!.Description!.ToLower().Contains(query) || s!.Keywords!.ToLower().Contains(query) || s!.Category!.ToString().ToLower().Contains(query) || s!.Subcategory!.ToString().ToLower().Contains(query)).ToArray(); return; } }