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
735
How can user set "null" value to xamMaskedInput?
posted

Hello,

I use xamMaskedInput bind a model's property which type is "int?",when i fill a vaild value to xamMaskedInput, then clear it. I found my action didn't raise a propertychanged event, also the tooltip have a error: value "" could not be converted.

Anyone have idea about this case?

xaml code:

<igDP:XamMaskedInput x:Name="msiCAI" Grid.Column="1" Text="{Binding Path=CAI, UpdateSourceTrigger=PropertyChanged,ValidatesOnDataErrors=True}" Mask="{}{char:3:0-9}">
<igDP:XamMaskedInput.ValueConstraint>
<igDP:ValueConstraint Nullable="True"/>
</igDP:XamMaskedInput.ValueConstraint>
</igDP:XamMaskedInput>

Thanks,

Parents
  • 138253
    Offline posted

    Hello Brandon,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamMaskedInputBinding.zip
Reply Children