Binding Validation.HasError property in MVVM

前端 未结 3 1015
南方客
南方客 2020-12-05 21:29

I am currently implementing a ValidationRule to check if some invalid character are in a TextBox. I am happy that setting the class I have implemented that inhe

3条回答
  •  执念已碎
    2020-12-05 22:18

    all perfect work set NotifyOnValidationError="True" on binding; (or maybe with binding group also possible)

    then use

    sample with one textBox:

    can be changed to ms sample agerangerule etc

    
                
                    
                        
                            
                        
                    
                
            
    

提交回复
热议问题