feat: quick fix and rename.

This commit is contained in:
rabbitism
2024-01-28 20:13:44 +08:00
parent 7b8d91cc42
commit 603f92ab21
6 changed files with 20 additions and 13 deletions

View File

@@ -194,6 +194,7 @@ public abstract class NumericUpDown : TemplatedControl
if (AllowDrag && _dragPanel is not null)
{
_dragPanel.IsVisible = true;
_dragPanel.Focus();
}
}
}
@@ -204,8 +205,14 @@ public abstract class NumericUpDown : TemplatedControl
if (e.ClickCount == 2 && _dragPanel is not null && AllowDrag)
{
_dragPanel.IsVisible = false;
_textBox.IsReadOnly = false;
}
_textBox?.Focus();
else
{
_textBox?.Focus();
_textBox!.IsReadOnly = true;
}
}
private void OnDragPanelPointerReleased(object sender, PointerReleasedEventArgs e)