How can I get WPF to NOT display validation errors upon initial display of control?

前端 未结 3 952
悲哀的现实
悲哀的现实 2021-01-04 07:27

When I first display my screen to the user, I\'d rather not have all the validation messages show up for required fields and such before the user has had a chance to fill in

3条回答
  •  被撕碎了的回忆
    2021-01-04 07:57

    You can get better answers if you make an effort to post a snippet of your relevant code/XAML. It would make it easier to reproduce and eliminate much of the guesswork.

    Try setting ValidatesOnTargetUpdated="False" on your validation rules and see if that helps.

提交回复
热议问题