From 8e707a66a92868ba63d6083e8953164f0f18f0e5 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Mon, 23 Jan 2023 22:27:50 +0800 Subject: [PATCH] enhance: optimize input elements. --- .../Styles/Base/CheckComboBoxBaseStyle.xaml | 613 ++-- .../Themes/Styles/Base/ComboBoxBaseStyle.xaml | 1364 ++++---- .../Themes/Styles/Window.xaml | 17 +- .../HandyControl_Net_40/Themes/Theme.xaml | 2842 +++++++---------- .../HandyControlDemo_Shared/MainWindow.xaml | 37 +- .../Tools/Helper/VersionHelper.cs | 36 +- .../Controls/CheckComboBoxDemoCtl.xaml | 28 +- .../UserControl/Controls/ComboBoxDemoCtl.xaml | 32 +- .../Controls/DatePickerDemoCtl.xaml | 12 +- .../Controls/DateTimePickerDemoCtl.xaml | 24 +- .../Controls/NumericUpDownDemoCtl.xaml | 64 +- .../Controls/PasswordBoxDemoCtl.xaml | 16 +- .../Controls/SearchBarDemoCtl.xaml | 68 +- .../Controls/TimePickerDemoCtl.xaml | 30 +- .../Controls/Attach/InfoElement.cs | 4 +- .../Controls/Attach/TitleElement.cs | 9 + .../Controls/Block/ToggleBlock.cs | 53 +- .../Input/CheckComboBox/CheckComboBox.cs | 97 +- .../Controls/Input/ComboBox.cs | 134 +- .../Controls/Input/DatePicker.cs | 100 +- .../Controls/Input/DateTimePicker.cs | 87 +- .../Controls/Input/IDataInput.cs | 42 - .../Controls/Input/PasswordBox.cs | 101 +- .../Controls/Input/TimePicker.cs | 87 +- .../HandyControl_Shared.projitems | 1 - .../Interactivity/Commands/ControlCommands.cs | 2 + .../Themes/Basic/Sizes.xaml | 7 +- .../Themes/Styles/Base/BaseStyle.xaml | 49 +- .../Styles/Base/CheckComboBoxBaseStyle.xaml | 651 ++-- .../Themes/Styles/Base/ComboBoxBaseStyle.xaml | 1654 +++++----- .../Themes/Styles/Base/DataGridBaseStyle.xaml | 18 +- .../Styles/Base/DatePickerBaseStyle.xaml | 250 +- .../Styles/Base/DateTimePickerBaseStyle.xaml | 244 +- .../Styles/Base/NumericUpDownBaseStyle.xaml | 28 +- .../Styles/Base/PasswordBoxBaseStyle.xaml | 125 +- .../Styles/Base/SearchBarBaseStyle.xaml | 18 +- .../Styles/Base/TabControlBaseStyle.xaml | 8 +- .../Themes/Styles/Base/TextBoxBaseStyle.xaml | 50 +- .../Styles/Base/TimePickerBaseStyle.xaml | 246 +- .../Styles/Base/ToggleButtonBaseStyle.xaml | 2 +- .../Themes/Styles/CheckComboBox.xaml | 15 +- .../Themes/Styles/ComboBox.xaml | 6 +- .../Themes/Styles/DataGrid.xaml | 2 +- .../Themes/Styles/DatePicker.xaml | 8 +- .../Themes/Styles/DateTimePicker.xaml | 8 +- .../Themes/Styles/NumericUpDown.xaml | 8 +- .../Themes/Styles/PasswordBox.xaml | 8 +- .../Themes/Styles/SearchBar.xaml | 8 +- .../Themes/Styles/TextBox.xaml | 8 +- .../Themes/Styles/TimePicker.xaml | 8 +- .../HandyControl_Shared/Themes/Theme.xaml | 2822 +++++++--------- .../Converter/ThicknessSplitConverter.cs | 34 +- 52 files changed, 5095 insertions(+), 7090 deletions(-) delete mode 100644 src/Shared/HandyControl_Shared/Controls/Input/IDataInput.cs diff --git a/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/CheckComboBoxBaseStyle.xaml b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/CheckComboBoxBaseStyle.xaml index 887796bc..948fd99e 100644 --- a/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/CheckComboBoxBaseStyle.xaml +++ b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/CheckComboBoxBaseStyle.xaml @@ -7,58 +7,25 @@ xmlns:langs="clr-namespace:HandyControl.Properties.Langs"> - - - - - - + + - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - + + - + - + - + - - + @@ -252,306 +213,286 @@ - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - + + - + - + - + - - + - - - - - - - - - + - - + + - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -4972,8 +4961,7 @@ - - - - + - + - + + + + + + + + + + + + - + - + @@ -5224,26 +5166,22 @@ - - - - - - + + - + - + @@ -5265,50 +5203,60 @@ - - - - - + - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - + @@ -5320,58 +5268,70 @@ - - + - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - + @@ -5383,8 +5343,7 @@ - - + @@ -5400,23 +5359,33 @@ - + - + - + - + + + + + + + + + + + - + - + @@ -5427,29 +5396,22 @@ - - - - - - + + - - - - + - + @@ -5463,58 +5425,64 @@ - + - - - - - + - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - + - + @@ -5523,65 +5491,69 @@ - - + - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - - - - - - - + @@ -5590,8 +5562,7 @@ - - + @@ -5603,11 +5574,10 @@ - - + @@ -5630,25 +5600,14 @@ - - - - - - - - - - - - - - + - + - - - - - - - - - - - - - - - - - - - - - -