From c9920ba9514400cebeaff38b2da26e04124c8661 Mon Sep 17 00:00:00 2001 From: seedtyx Date: Mon, 8 Jun 2020 16:04:22 +0800 Subject: [PATCH] Fix #393 Fix #393 --- .../HandyControl_Shared/Controls/Input/NumericUpDown.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs b/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs index b153a4b23..c396ab1f1 100644 --- a/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs +++ b/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs @@ -210,7 +210,7 @@ private static object CoerceValue(DependencyObject d, object basevalue) { ctl.Value = maximum; } - + ctl.SetText(); return num > maximum ? maximum : num; } @@ -220,11 +220,7 @@ private static object CoerceValue(DependencyObject d, object basevalue) public double Value { get => (double)GetValue(ValueProperty); - set - { - SetValue(ValueProperty, value); - SetText(); - } + set => SetValue(ValueProperty, value); } ///