Thanks for all your replies.
I wanted to keep invalid characters from being typed into the front-end, so the view-model could have kept their original data type (e.g. int
). When the TextBox would have lost focus, I would have manually updated the source (using BindingExpression::UpdateSource()
)
It doesn't look like this is possible.
So, I changed all view-model properties to string and switched to Mode=TwoWay. And I manually convert data types later then.