I have a combobox with a simple binding:
SelectedValue="{Binding Path=SomeValue, Mode=TwoWay}
The problem is that SomeValue is sometimes a string not parsable to int. And I get "System.FormatException: Input string was not in a correct format." as soon as I set the ItemsSource.
First question: how to handle the exception since I get a error message box. Second question: can I show kind of a validation error to the user?
Attention: the source of the problem comes from the view model data source so I don't think it has anything to classical validation patterns.