WPF Validation Control Template overlapping

后端 未结 2 960
傲寒
傲寒 2021-01-05 23:12

I\'ve got a user control with a control template to show validation errors, validation template:



        
2条回答
  •  天涯浪人
    2021-01-05 23:51

    Alternately, instead of using ControlTemplate, you could put the error message TextBlock beside the TextBox, and set its Text property binding the TextBox's ErrorContent.

    
        
            
            
        
        
            
                
                    
                        
                    
                
            
        
        
    
    

提交回复
热议问题