WPF TextBox Validation

前端 未结 4 1126
日久生厌
日久生厌 2021-01-31 22:21

I have validation hooked up to a model that is bound to the TextBox container. When the window is first opened validation errors appear as the model is empty, I do

4条回答
  •  梦如初夏
    2021-01-31 22:52

    in your app.xaml file, you need to use custom textbox style for textbox validation without any third party component.

    enter image description here

    
        
            
                
                    
                        
                    
                    
                    
                
            
        
    
    

提交回复
热议问题