In my WPF text box i have bound the integer entity variable and set the IntegerValidationAttribute. when i input text IDataErrorInfo is triggered with proper error info.
The issue is when i input the integer value more then int.MaxValue(2147483647) say i input 2147483649 the IDataErrorInfo error is not triggered.
I need to disable/Enable button depends on proper integer value validation.
Please suggest for the same.
Regards, Vivek
IntegerValidationAttribute
custom? Have you tried theRangeAttribute
? – user7116ValidatesOnExceptions=True
to the Binding? As blindmeis points out, the conversion performed by the type descriptor is failing, raising an exception. – user7116