Relative Content

Tag Archive for wpfxamlidataerrorinfo

customize ‘value cannot be converted’ error message xaml

I’m trying to build a form that handles errors and exceptions with mvvm, but xaml handles some errors with out event notifying the view model. For example, there is a textbox that binds to an integer. When you enter a character in the text box ‘value cannot be converted’ error pops. which is fine for most apps, but not for this case because the app I’m writing is in another language and all of the errors are written in that language. I don’t want an error pop in another language.