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 Reply Children
No Data