You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My situation is that I have a TextBox bound to an integer.
It would appear that exceptions (e.g. the conversion exception that happens when a user enters text into a TextBox that is bound to an integer) raise the appropriate error notification events, but do not get added to the ObservableValidator's validation errors. Even though I have "ValidatesOnExceptions=True" in my binding, and the error shows up fine in my error display (e.g. a TextBlock with Text="{Binding (Validation.Errors)[0].ErrorContent, ElementName=NameTextBox}"), the ObservableValidator's "HasErrors" is still false.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My situation is that I have a TextBox bound to an integer.
It would appear that exceptions (e.g. the conversion exception that happens when a user enters text into a TextBox that is bound to an integer) raise the appropriate error notification events, but do not get added to the ObservableValidator's validation errors. Even though I have "ValidatesOnExceptions=True" in my binding, and the error shows up fine in my error display (e.g. a TextBlock with Text="{Binding (Validation.Errors)[0].ErrorContent, ElementName=NameTextBox}"), the ObservableValidator's "HasErrors" is still false.
Is this behavior I can change, or is it a bug?
Beta Was this translation helpful? Give feedback.
All reactions