Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Validation error: Value '' could not be converted

$
0
0

I use for validation the IDataErrorInfo Interface (i use the mvvm pattern).
In my view I have a textbox  binding to a int property (null is allowed!). The problem is, when i delete the text in my textbox, the text "Value '' could not be converted" will be displayed - but i have a nullable int property?!
Is there a simple solution? Thx!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>