From 30241f3f22f9d06feac367867c11cbb793d0c8e9 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sun, 14 Jan 2024 23:17:02 +0800 Subject: [PATCH] fix: fix focus visual. --- src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs index c60e205..0c0f67d 100644 --- a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs +++ b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs @@ -197,6 +197,7 @@ public abstract class NumericUpDown : TemplatedControl private void OnDragPanelPointerPressed(object sender, PointerPressedEventArgs e) { _point = e.GetPosition(this); + _textBox?.Focus(); } private void OnDragPanelPointerReleased(object sender, PointerReleasedEventArgs e) @@ -476,7 +477,6 @@ public abstract class NumericUpDownBase: NumericUpDown where T: struct, IComp { try { - // TODO var newValue = ConvertTextToValue(text); if (EmptyInputValue is not null && newValue is null) {