From ab9c58c1d649d38afa8ad123d9727383d1e18386 Mon Sep 17 00:00:00 2001 From: Scrub <72096833+ScrubN@users.noreply.github.com> Date: Thu, 4 Apr 2024 01:01:34 -0400 Subject: [PATCH] Fix NumericUpDown text not updating when arrow keys are used --- src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs b/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs index b2967d9b..b4dd3940 100644 --- a/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs +++ b/src/Shared/HandyControl_Shared/Controls/Input/NumericUpDown.cs @@ -106,10 +106,12 @@ private void TextBox_PreviewKeyDown(object sender, KeyEventArgs e) if (e.Key == Key.Up) { Value += Increment; + SetText(true); } else if (e.Key == Key.Down) { Value -= Increment; + SetText(true); } }