From bd5161c0a77c380fbacd8f1358beb3e89251631b Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Mon, 3 Apr 2023 23:14:52 +0800 Subject: [PATCH 01/14] fix: close #1373 --- .../HandyControl_Shared/Controls/Image/ImageViewer.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Shared/HandyControl_Shared/Controls/Image/ImageViewer.cs b/src/Shared/HandyControl_Shared/Controls/Image/ImageViewer.cs index a75951a6..9ae80e84 100644 --- a/src/Shared/HandyControl_Shared/Controls/Image/ImageViewer.cs +++ b/src/Shared/HandyControl_Shared/Controls/Image/ImageViewer.cs @@ -729,8 +729,14 @@ private void ScaleImg(bool isEnlarge) var olgImageHeight = ImageHeight; var tempScale = isEnlarge ? _imgActualScale + ScaleInternal : _imgActualScale - ScaleInternal; - if (Math.Abs(tempScale) < ScaleInternal || Math.Abs(tempScale - 50) < 0.001) - return; + if (Math.Abs(tempScale) < ScaleInternal) + { + tempScale = ScaleInternal; + } + else if (Math.Abs(tempScale) > 50) + { + tempScale = 50; + } ImageScale = tempScale; From 61a964f9eab709a7816310a3ac24c38193bf4c90 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Thu, 6 Apr 2023 21:06:25 +0800 Subject: [PATCH 02/14] fix: close #1378 --- src/Net_40/HandyControl_Net_40/Themes/Theme.xaml | 3 +-- .../Themes/Styles/Base/AutoCompleteTextBoxBaseStyle.xaml | 4 +--- src/Shared/HandyControl_Shared/Themes/Theme.xaml | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml index 6487212f..880f38a5 100644 --- a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml +++ b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml @@ -11558,7 +11558,6 @@ - - - \ No newline at end of file + diff --git a/src/Shared/HandyControl_Shared/Themes/Theme.xaml b/src/Shared/HandyControl_Shared/Themes/Theme.xaml index de20dfbc..e96e892a 100644 --- a/src/Shared/HandyControl_Shared/Themes/Theme.xaml +++ b/src/Shared/HandyControl_Shared/Themes/Theme.xaml @@ -8701,7 +8701,7 @@ - + diff --git a/src/Shared/HandyControl_Shared/Tools/Extension/ColLayout.cs b/src/Shared/HandyControl_Shared/Tools/Extension/ColLayout.cs index 37f67cea..00433ba5 100644 --- a/src/Shared/HandyControl_Shared/Tools/Extension/ColLayout.cs +++ b/src/Shared/HandyControl_Shared/Tools/Extension/ColLayout.cs @@ -11,19 +11,19 @@ namespace HandyControl.Tools.Extension; [TypeConverter(typeof(ColLayoutConverter))] public class ColLayout : MarkupExtension { - public static readonly int ColMaxCellCount = 24; + public const int ColMaxCellCount = 24; - public static readonly int HalfColMaxCellCount = 12; + public const int HalfColMaxCellCount = 12; - public static readonly int XsMaxWidth = 768; + public const int XsMaxWidth = 768; - public static readonly int SmMaxWidth = 992; + public const int SmMaxWidth = 992; - public static readonly int MdMaxWidth = 1200; + public const int MdMaxWidth = 1200; - public static readonly int LgMaxWidth = 1920; + public const int LgMaxWidth = 1920; - public static readonly int XlMaxWidth = 2560; + public const int XlMaxWidth = 2560; public int Xs { get; set; } = 24; From 3e01876fa3d1e5308b3ebcfbbfc645f1a92830f3 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sat, 17 Jun 2023 15:39:11 +0800 Subject: [PATCH 08/14] fix: close #1395 --- .../HandyControl_Net_40/Themes/Theme.xaml | 20 +++++++++---------- .../Styles/Base/NumericUpDownBaseStyle.xaml | 20 +++++++++---------- .../HandyControl_Shared/Themes/Theme.xaml | 20 +++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml index 2335124e..f52bc7b8 100644 --- a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml +++ b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml @@ -9407,8 +9407,8 @@ -