如何在 WPF 4.5 中实现 INotifyDataErrorInfo? [英] How to implement INotifyDataErrorInfo in WPF 4.5?

查看:14
本文介绍了如何在 WPF 4.5 中实现 INotifyDataErrorInfo?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到在.NET Framework 4.5中出现了这个界面

I realized that appears this interface in .NET Framework 4.5

我首先在寻找如何在 Silverlight 中实现(我可以想象它是以相同的方式实现的),但是我找不到这个新界面的紧凑演示.是否可以展示我如何使用它?

I was looking first for about how to implemented in Silverlight (I can imagine that it's implemented in the same way), but I can't find a compact demo of this new interface. Is it possible to show how can I use it?

很想找个小demo来了解一下

I really want to find a small demo to understand it

推荐答案

除了 MSDN 上关于 INotifyDataErrorInfo 的 Silverlight 版本

Beside the very detailed description on MSDN about the Silverlight version of INotifyDataErrorInfo

已经有一些博客文章包含如何在 WPF 4.5 中使用/实现它的示例:

There are already some blog posts with samples how to use/implement it in WPF 4.5:

  • WPF 4.5 – Asynchronous validation (original link no longer working) Wayback Link
  • WPF 4.5 – Part 1 : Asynchronous data validation (the author has a nice series about the new fetaures in WPF 4.5)

这篇关于如何在 WPF 4.5 中实现 INotifyDataErrorInfo?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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