简体   繁体   中英

Why can not I close tab (even window) with validated with error Devexpress control?

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.AllowLeaveEditor value).

I think the whole purpose of the validation is making the errors in data impossible when the data is entered manually. If nobody will answer on how to override this behavior you could always write a support ticket.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM