如何在 WPF 4.5 中实现 INotifyDataErrorInfo? [英] How to implement INotifyDataErrorInfo in WPF 4.5?
问题描述
我意识到在.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 – 异步验证 (原始链接不再有效) Wayback 链接
- WPF 4.5 – 第 1 部分:异步数据验证(作者有一个关于 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屋!