Issue with WPF validation(IDataErrorInfo) and tab focusing

后端 未结 2 1877
挽巷
挽巷 2020-12-14 21:40

I have a TextBox bound to a property of an object which implements IDataErrorInfo. I set up the Validation.ErrorTemplate of the

2条回答
  •  醉梦人生
    2020-12-14 22:19

    Tab items tend to mess up with adorners (although I don't know why, I experienced it).

    I could reproduce your problem.

    Solve it by wrapping the contents of the TabItem with an AdornerDecorator.

    So:

    
        
    
            
    
               
               ....
               
    
            
    
        
        ...
    
    

提交回复
热议问题