You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Increment and decrement button in NumberBox invoke StepValue function.
It validates input before increment or decrement.
// Before adjusting the value, validate the contents of the textbox so we don't override it.
ValidateInput();
var newValue = Value ?? 0;
if (change is not null)
{
newValue += change ?? 0d; // <--------- increment or drcement happens here
}
SetCurrentValue(ValueProperty, newValue); // <--------- value set here
To Reproduce
Use NumberBox with max and min range set. Click increment or decrement button to set the value out of range.
Expected behavior
Value should not be set out of range
Screenshots
No response
OS version
Same as repo
.NET version
Same as repo
WPF-UI NuGet version
Same as repo
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Increment and decrement button in NumberBox invoke StepValue function.
It validates input before increment or decrement.
To Reproduce
Use NumberBox with max and min range set. Click increment or decrement button to set the value out of range.
Expected behavior
Value should not be set out of range
Screenshots
No response
OS version
Same as repo
.NET version
Same as repo
WPF-UI NuGet version
Same as repo
Additional context
No response
The text was updated successfully, but these errors were encountered: