Monitor for all validation events

后端 未结 1 924
灰色年华
灰色年华 2021-01-29 06:36

It\'s quite easy to check if certain container or its children have validation errors. This can be used to disable Save button.

I can use timer



        
1条回答
  •  梦毁少年i
    2021-01-29 06:53

    The way I usually handle this is illustrated here:

    https://social.technet.microsoft.com/wiki/contents/articles/28597.aspx

    The errorevent will bubble to a container and you can handle that, use a behavior or command to pass it to the viewmodel.

    Like:

    
        
            
    
        
        
            
                
                    
                
            
            
             
            
        
    
    

    You need NotifyOnValidationError=True on any bindings.

    0 讨论(0)
提交回复
热议问题