2
Vote

SimplePropertyConverter.ConvertBack FormatException using GreaterOrEqualFilterInitializer or LessOrEqualFilterInitializer

description

If you use GreaterOrEqualFilterInitializer or LessOrEqualFilterInitializer and write any character (not number) to the TextBox, you will get a FormatException, because of the SimplePropertyConverter.ConvertBack method. The default NullableConverter CanConvertFrom method returns true, if the source is Int32 and the target value is String. Then the ConvertFrom method throws FormatException (Binding error).

Normally the program doesn't exit, and the user can't see it, but we handle any of the unhandled exceptions in the app.xaml.cs, and the exception is shown our log files.

Thanks in advance!

comments