From d0094f049e8b86a57267b970a367ebb1e0a5e7ff Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Thu, 17 Jan 2019 15:00:08 +0800 Subject: [PATCH] add support for search --- HandyControl/Controls/Input/SearchBar.cs | 4 +- .../Styles/Base/SearchBarBaseStyle.xaml | 11 +- HandyControlDemo/HandyControlDemo.csproj | 1 + .../Properties/Langs/Lang.Designer.cs | 11 +- .../Properties/Langs/Lang.en.resx | 3 + HandyControlDemo/Properties/Langs/Lang.resx | 3 + .../SortAscending_grey_16x.png | Bin 0 -> 356 bytes .../UserControl/Main/LeftMainContent.xaml | 646 +++++++++--------- .../UserControl/Main/LeftMainContent.xaml.cs | 50 +- 9 files changed, 415 insertions(+), 314 deletions(-) create mode 100644 HandyControlDemo/Resources/Img/LeftMainContent/SortAscending_grey_16x.png diff --git a/HandyControl/Controls/Input/SearchBar.cs b/HandyControl/Controls/Input/SearchBar.cs index cc19ed54..864d3b39 100644 --- a/HandyControl/Controls/Input/SearchBar.cs +++ b/HandyControl/Controls/Input/SearchBar.cs @@ -28,7 +28,7 @@ namespace HandyControl.Controls { RaiseEvent(new FunctionEventArgs(SearchStartedEvent, this) { - Source = Text + Info = Text }); })); } @@ -72,7 +72,7 @@ namespace HandyControl.Controls { RaiseEvent(new FunctionEventArgs(SearchStartedEvent, this) { - Source = Text + Info = Text }); } } diff --git a/HandyControl/Themes/Styles/Base/SearchBarBaseStyle.xaml b/HandyControl/Themes/Styles/Base/SearchBarBaseStyle.xaml index bf499612..7285a243 100644 --- a/HandyControl/Themes/Styles/Base/SearchBarBaseStyle.xaml +++ b/HandyControl/Themes/Styles/Base/SearchBarBaseStyle.xaml @@ -16,6 +16,7 @@ + @@ -28,7 +29,7 @@