Using WPF Validation rules and the disabling of a 'Save' button

前端 未结 10 2073
眼角桃花
眼角桃花 2020-11-28 09:54

I have a page where a few textboxes cannot be empty before clicking a Save button.


                            


        
10条回答
  •  借酒劲吻你
    2020-11-28 10:38

    Here is the complete sample what you need.

    http://codeblitz.wordpress.com/2009/05/08/wpf-validation-made-easy-with-idataerrorinfo/

    https://skydrive.live.com/?cid=2c6600f1c1d5e3be&id=2C6600F1C1D5E3BE%21203

    enter image description here

提交回复
热议问题