在使用vb的wpf中是否有类似于错误提供程序的工具? [英] Is there any tool similar to error provider in wpf using vb?

查看:106
本文介绍了在使用vb的wpf中是否有类似于错误提供程序的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用vb的wpf中是否有类似于错误提供程序的工具?

Is there any tool similar to error provider in wpf using vb?

推荐答案

你的意思是像 System.Windows.Forms。 ErrorProvider

https://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider%28v=vs.110%29.aspx [ ^ ]?



首先,看看这个: http://errorprovidersforwpf.codeplex .com [ ^ ]。



(看看这个CodeProject文章,虽然不是很好的声誉:

Windows Presentation Foundation的错误提供程序 [ ^ ],

Wpf ErrorProvider - 集成IDataErrorInfo,WPF和验证应用程序块(VAB) [ ^ ]。)
我认为这个概念本身非常有限。在许多情况下,只有在考虑一组控制时,才能确定控制状态是否有效。在许多情况下,仅在用户即将使用控件的数据时验证控件集是有意义的,例如点击某些按钮,如提交,执行。



另见本文关于WPF验证的文章: Windows Presentation Foundation中的验证 [ ^ ]。



-SA
Do you mean something like System.Windows.Forms.ErrorProvider:
https://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider%28v=vs.110%29.aspx[^]?

First of all, look at this: http://errorprovidersforwpf.codeplex.com[^].

(Take a look at this CodeProject articles, not of good reputation though:
An Error Provider for Windows Presentation Foundation[^],
Wpf ErrorProvider - Integrating IDataErrorInfo, WPF, and the Validation Application Block (VAB)[^].)
I think this concept itself is very limited. In many cases, you can decide if the state of control is valid only if you consider a set of controls taken together. In many cases, it makes sense to validate the set of control only at the moment when the user is about to use the controls' data, such as at the click of some button like "Submit", "Perform".

See also this article on validation in WPF: Validation in Windows Presentation Foundation[^].

—SA


这篇关于在使用vb的wpf中是否有类似于错误提供程序的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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