From 6709946f666851d906934daed891ac22780862f6 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Thu, 17 Jan 2019 13:07:29 +0330 Subject: [PATCH] fix lowercase & uppercase search --- HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs index 2c5680ad..6b0b9d2e 100644 --- a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs +++ b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs @@ -62,7 +62,7 @@ namespace HandyControlDemo.UserControl foreach (var listBoxItem in listStyle.Items.OfType()) { - 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.Show(listBoxItem.Content.ToString().Contains(e.Info)); + listBoxItem.Show(listBoxItem.Content.ToString().ToLower().Contains(e.Info.ToLower())); } } }