Using Exception Check
<TextBox> <Binding Path="Value" UpdateSourceTrigger="PropertyChanged"> <Binding.ValidationRules> <ExceptionValidationRule /> </Binding.ValidationRules> </Binding> </TextBox>
for this property
int _value = 1; public int Value { get { return _value; } set { if (value < 1) throw new ArgumentException(); _value = value; OnPropertyChanged(); } }
If I introduce nonsense (for example, 1asdkfjlsdf ), the TextBox will get a red border. Good.
But as soon as I enter 0 when break debugging happens

and every time I click Continue on the debug panel.
Without debugging, this works as expected: a red frame for a value of 12093813asdf or 0 .
Question: How can I prevent this gap?
I can undo a specific exception (arrow in the screenshot), but I want breaks when this exception occurs in other places (for example, in the Logic of the model ArgumentException also throw in some methods). I can make my own exception, drop it and cancel it, but I'm not happy with that.
source share