From f835f25165ff09b10f47744d45952b6f3963c4df Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Tue, 1 Dec 2020 23:23:22 +0800 Subject: [PATCH] combine xaml virtues: 1. 2 or 3 times layout speed 2. smaller dll --- .../HandyControl_Net_40.csproj | 67 +- .../Styles/Base/CheckComboBoxBaseStyle.xaml | 2 +- .../Themes/Styles/Base/ComboBoxBaseStyle.xaml | 2 +- .../Themes/Styles/DataGrid.xaml | 2 +- .../Themes/Styles/MessageBox.xaml | 2 +- .../HandyControl_Net_40/Themes/Theme.xaml | 13167 +++++++++++++++ .../HandyControl_Net_GE45.csproj | 3 + src/Shared/HandyControlDemo_Shared/App.xaml | 2 +- .../Controls/DatePickerDemoCtl.xaml | 2 +- .../UserControl/Controls/DialogDemoCtl.xaml | 2 +- .../UserControl/Controls/PoptipDemoCtl.xaml | 2 +- .../Styles/GeometryDemoCtl.xaml.cs | 15 +- .../Styles/NativeDatePickerDemoCtl.xaml | 2 +- .../HandyControl_Shared.projitems | 831 +- .../Themes/Basic/Basic.xaml | 17 - .../Themes/Basic/Colors/Colors.xaml | 2 +- .../Themes/Basic/Colors/ColorsDark.xaml | 2 +- .../Themes/Basic/Colors/ColorsViolet.xaml | 2 +- .../Themes/Basic/Fonts.xaml | 2 +- .../Themes/Basic/Sizes.xaml | 2 +- .../HandyControl_Shared/Themes/Lang.xaml | 7 + .../Styles/Base/CheckComboBoxBaseStyle.xaml | 2 +- .../Themes/Styles/Base/ComboBoxBaseStyle.xaml | 2 +- .../Styles/Base/DatePickerBaseStyle.xaml | 2 +- .../Styles/Base/DateTimePickerBaseStyle.xaml | 2 +- .../Styles/Base/NumericUpDownBaseStyle.xaml | 2 +- .../Styles/Base/PasswordBoxBaseStyle.xaml | 2 +- .../Styles/Base/ProgressBarBaseStyle.xaml | 2 +- .../Styles/Base/RadioButtonBaseStyle.xaml | 2 +- .../Styles/Base/SearchBarBaseStyle.xaml | 2 +- .../Styles/Base/TabControlBaseStyle.xaml | 2 +- .../Themes/Styles/Base/TextBoxBaseStyle.xaml | 2 +- .../Styles/Base/TimePickerBaseStyle.xaml | 2 +- .../Styles/Base/ToggleButtonBaseStyle.xaml | 2 +- .../Themes/Styles/DataGrid.xaml | 2 +- .../Themes/Styles/MessageBox.xaml | 2 +- .../Themes/Styles/Pagination.xaml | 2 +- .../Themes/Styles/ProgressBar.xaml | 2 +- .../Themes/Styles/PropertyGrid.xaml | 2 +- .../Themes/Styles/Style.xaml | 96 - .../HandyControl_Shared/Themes/Theme.xaml | 13329 +++++++++++++++- .../HandyControl_Shared/Themes/Theme_40.txt | 166 + .../HandyControl_Shared/Themes/Theme_GE45.txt | 166 + .../Themes/XamlCombine.exe | Bin 0 -> 13312 bytes 44 files changed, 27232 insertions(+), 696 deletions(-) create mode 100644 src/Net_40/HandyControl_Net_40/Themes/Theme.xaml delete mode 100644 src/Shared/HandyControl_Shared/Themes/Basic/Basic.xaml create mode 100644 src/Shared/HandyControl_Shared/Themes/Lang.xaml delete mode 100644 src/Shared/HandyControl_Shared/Themes/Styles/Style.xaml create mode 100644 src/Shared/HandyControl_Shared/Themes/Theme_40.txt create mode 100644 src/Shared/HandyControl_Shared/Themes/Theme_GE45.txt create mode 100644 src/Shared/HandyControl_Shared/Themes/XamlCombine.exe diff --git a/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj b/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj index 1b529f4d..eeac001a 100644 --- a/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj +++ b/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj @@ -18,32 +18,6 @@ 3.0.1 - - - Designer - XamlIntelliSenseFileGenerator - - - MSBuild:Compile - Designer - - - Designer - XamlIntelliSenseFileGenerator - - - Designer - XamlIntelliSenseFileGenerator - - - Designer - XamlIntelliSenseFileGenerator - - - Designer - XamlIntelliSenseFileGenerator - - Properties\Langs\Lang.Designer.cs @@ -172,7 +146,7 @@ Resources\Images\GlowWindow\topright.png - + @@ -180,5 +154,44 @@ + + + + + + + + + + + + + Designer + XamlIntelliSenseFileGenerator + + + MSBuild:Compile + Designer + + + Designer + + + Designer + + + Designer + + + Designer + + + Designer + MSBuild:Compile + + + + + \ No newline at end of file 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 c2bea6d5..c4357c39 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 @@ -3,7 +3,7 @@ xmlns:hc="clr-namespace:HandyControl.Controls" xmlns:ex="clr-namespace:HandyControl.Tools.Extension" xmlns:themes="clr-namespace:HandyControl.Themes" - xmlns:system="clr-namespace:System;assembly=System.Runtime" + xmlns:system="clr-namespace:System;assembly=mscorlib" xmlns:interactivity="clr-namespace:HandyControl.Interactivity" xmlns:langs="clr-namespace:HandyControl.Properties.Langs"> diff --git a/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml index c61184e5..9154c735 100644 --- a/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml +++ b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/ComboBoxBaseStyle.xaml @@ -2,7 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:hc="clr-namespace:HandyControl.Controls" xmlns:interactivity="clr-namespace:HandyControl.Interactivity" - xmlns:system="clr-namespace:System;assembly=System.Runtime" + xmlns:system="clr-namespace:System;assembly=mscorlib" xmlns:themes="clr-namespace:HandyControl.Themes"> diff --git a/src/Net_40/HandyControl_Net_40/Themes/Styles/DataGrid.xaml b/src/Net_40/HandyControl_Net_40/Themes/Styles/DataGrid.xaml index 4ee0a6a2..424e47fa 100644 --- a/src/Net_40/HandyControl_Net_40/Themes/Styles/DataGrid.xaml +++ b/src/Net_40/HandyControl_Net_40/Themes/Styles/DataGrid.xaml @@ -1,7 +1,7 @@  diff --git a/src/Net_40/HandyControl_Net_40/Themes/Styles/MessageBox.xaml b/src/Net_40/HandyControl_Net_40/Themes/Styles/MessageBox.xaml index c2d39033..35de3ab3 100644 --- a/src/Net_40/HandyControl_Net_40/Themes/Styles/MessageBox.xaml +++ b/src/Net_40/HandyControl_Net_40/Themes/Styles/MessageBox.xaml @@ -9,7 +9,7 @@ - + + 30 + 10,6 + 8,6 + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +