0
大家好我对WPF很新,并尝试一些示例 程序来了解它。WPF:提交按钮的数据验证
我有一个应用程序有以下字段
Username(TextBox)
Password(PasswordBox)
Button(Submit)
要求:
我要做的用户名和密码的数据验证。
1.Validation when the cursor moves from the Box.
和
2.Validation when the Submit is pressed.
为了实现这两个触发器需要被使用。 以及如何获得我的第二个要求的代码。
如果您可以分享任何示例代码或直接给我一些 链接,这将是非常有益的。
请看这里http://stackoverflow.com/questions/4574304/wpf-validation-how-to-show-tooltips-and-disable-run-button – 2012-01-23 16:47:04