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
665
Validation on empty value
posted

Hi.

I have a xammaskededtior and I am binding it to a decimal value. But when the user deletes the value so it's null it gives me an error - which is fine but when I enter a value in after that the error still persists. 

I have attached a sample solution for you to browse through based on a previous forum post. 

Ideally I'd like to get rid of the style and if the user deletes the value then just revert it back to 0. 

I feel like I've tried most things 

InvalidValueBehavior="RevertValue"
Text="{Binding SalesQuantity, UpdateSourceTrigger=PropertyChanged, 
FallbackValue=0, TargetNullValue=0, Mode=TwoWay, 
ValidatesOnDataErrors=False, ValidatesOnExceptions=False, 
NotifyOnValidationError=False}"

Etc,.. But still no luck.
Any way around this?

Thanks, Grant


MaskedInput_ErrorStyling.zip
Parents
No Data
Reply
  • 22015
    posted

    Hello Grant,

     

    I have logged this behavior with our developers in our tracking system, with an issue ID of 192654.  I have also created a support ticket on your behalf with number CAS-157311-Z9P0F5 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.

Children
No Data