Merge pull request #34 from ghost1372/patch-8

Fix CaseSensitive Search
This commit is contained in:
NaBian authored and GitHub committed 2019-01-18 14:42:26 +08:00
commit 741f8788d9
1 file changed
+2 -2
@@ -62,7 +62,7 @@ namespace HandyControlDemo.UserControl
foreach (var listBoxItem in listStyle.Items.OfType<ListBoxItem>())
{
listBoxItem.Show(listBoxItem.Content.ToString().Contains(e.Info));
listBoxItem.Show(listBoxItem.Content.ToString().ToLower().Contains(e.Info.ToLower()));
}
}
@@ -72,7 +72,7 @@ namespace HandyControlDemo.UserControl
foreach (var listBoxItem in listControl.Items.OfType<ListBoxItem>())
{
listBoxItem.Show(listBoxItem.Content.ToString().Contains(e.Info));
listBoxItem.Show(listBoxItem.Content.ToString().ToLower().Contains(e.Info.ToLower()));
}
}
}