我如何在WPF中显示验证失败 [英] how I can display validation failures in WPF

查看:79
本文介绍了我如何在WPF中显示验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我在WPF中面临显示验证失败的问题。请帮助我,我该怎么办

hi i'm facing problem to dispaly validation failures in WPF.please help me,How can i do it

推荐答案

我WPF有INotifyDataErrorInfo,你可以使用此接口并尝试显示包含所有验证错误的TextBlock。



无论如何使用这个,有错误的控件会自动得到通知。
I WPF there is INotifyDataErrorInfo , you can use this interface and try to show a TextBlock with all the validation errors.

Anyways using this , the control which has the error will get notified automatically.


这篇关于我如何在WPF中显示验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆