I use devexpress wpf user control (SpinEdit).
When I enter the wrong value ( greater than max value) the error is shown within control.
At this moment I cant close the tab with this control and even whole wpf window. I cannot switch the tab. When the value within the range (no errors) I can do these actions.
Tell me please why and how can I override this behaviour?
The described behavior is correct – wrong values should not be posted in editor by default and the entire application should wait until a correct value is entered. Anyway, you can override this behavior using the BaseEdit.InvalidValueBehavior property (use the
InvalidValueBehavior.AllowLeaveEditorvalue).