WPF TextBox Validation

前端 未结 4 1123
日久生厌
日久生厌 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:45

    What I do, I donno if this is the correct way (I would be glad to learn, now is a chance), but in the initializer of the entity or the model I run all the validators.

提交回复
热议问题