TextBox validation tooltip becomes orphaned when changing tabs

I have a TextBox on a TabItem inside a TabControl. The use of INotifyDataError is changed based on validation, when there is an error in the TextBox and you are focusing on the TextBox, a validation popup is displayed. If I go to another tab, the tooltip will remain where it was, although I'm on a new tab. Essentially creating an orphaned ToolTip. When I return to the original tab with my text box that has a validation error, I can create so many new opened hints for orphaning by focusing on the text box and the switching tabs.

Using Silverlight Spy I'm trying to recreate a visual tree. The TextBox is inside the ScrollViewer inside the grid in the set of nested tab controls. Unfortunately, in my isolated sandbox, I still cannot reproduce the problem. The value, the hint goes away when switching tabs.

Has anyone else come across something like this?

+2
source share

Source: https://habr.com/ru/post/920344/


All Articles