should not SyncTextAndValue while fromTextToValue and clamp
This commit is contained in:
@@ -564,9 +564,16 @@ public abstract class NumericUpDownBase<T> : NumericUpDown where T : struct, ICo
|
|||||||
newValue = EmptyInputValue;
|
newValue = EmptyInputValue;
|
||||||
}
|
}
|
||||||
if (!Equals(newValue, Value))
|
if (!Equals(newValue, Value))
|
||||||
|
{
|
||||||
|
if (Equals(Clamp(newValue, Maximum, Minimum), newValue))
|
||||||
{
|
{
|
||||||
SetCurrentValue(ValueProperty, newValue);
|
SetCurrentValue(ValueProperty, newValue);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
parsedTextIsValid = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user