We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f1e37 commit d36d452Copy full SHA for d36d452
1 file changed
src/Wpf.Ui/Controls/NumberBox/NumberBox.cs
@@ -421,7 +421,11 @@ private void StepValue(double? change)
421
newValue += change ?? 0d;
422
}
423
424
- SetCurrentValue(ValueProperty, newValue);
+ // After adding step value, validate new value is between Minimum and Maximum
425
+ if (newValue >= Minimum && newValue <= Maximum)
426
+ {
427
+ SetCurrentValue(ValueProperty, newValue);
428
+ }
429
430
MoveCaretToTextEnd();
431
0 commit comments