I have a XamNumericInput with ValueConstraints and InvalidValueBehavior="RevertValue". When I test this control in my application, it works as expected, reverting the value back if I tried to violate the constraints. However, I am also testing this control using its automation peer, XamNumericInputAutomationPeer. There, I set the value by getting PatternInterface.IValuePattern from the peer and calling SetValue. There, I can see the value is also getting set but it does not revert back to the previous value if I violate the constraint. Is this a bug? Am I setting the value through the peer incorrectly?
Hello,
Did you try to remove the focus from the input control, so it can revert its correct value back? I test this with xamNumericInput(not editor) and it seems to work fine - when remove the focus the correct value is reverted back.
Regards,
Anastas