Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
XamMaskedInputAutomationPeer InvalidValueBehavior
posted

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?

Parents
No Data
Reply
  • 5600
    Offline posted

    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

Children
No Data