Wednesday, October 10, 2007
« CSLA .NET 3.0.2 (VB) available for downl... | Main | CSLA .NET 3.5 - for Visual Studio 2008 »

In CSLA .NET 3.0 I implemented Csla.Wpf.Validator. This control provides functionality similar to the Windows Forms ErrorProvider control, only in WPF. Of course the ErrorProvider relies on the standard IDataErrorInfo interface, which CSLA supports on behalf of your business objects, and so my Validator control used that same interface.

While I was researching and designing the Validator control, I was in contact with the WPF product team. As a result, I had (shall we say) a "strong suspicion" that my control was a temporary stop-gap until Microsoft provided a more integrated solution. And that's fine - we needed something that worked, and Validator was the ticket.

This blog post provides some good, detailed, insight into the real solution in .NET 3.5: 

Windows Presentation Foundation SDK : Data Validation in 3.5

A couple people have emailed me, asking what I think about this. My answer: I'm happy as can be!

As I say, I knew Validator was temporary. WPF is a version 1.0 technology, and it is very clear that Microsoft will be evolving it rapidly over the next few years. And it is equally clear that WPF must evolve to catch up to, and hopefully exceed, Windows Forms. That means more robust data binding support, including an ErrorProvider equivalent.

So to me, this just means that CSLA .NET 3.5 can drop the Validator control, because there's now a directly supported solution in .NET itself. While this will require changing XAML when moving from .NET 3.0 to 3.5, it is a worthwhile change to make.

Wednesday, October 10, 2007 9:31:01 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [2]  |  Related posts:
CSLA .NET on DNR TV
CSLA into the future
CSLA .NET ObjectFactory attribute
CSLA Light data provider
Using CSLA Light Part 4
Using CSLA Light Part 3


Thursday, October 11, 2007 6:21:32 AM (Central Standard Time, UTC-06:00)
I can see the benefits of WPF and all this UI work Microsoft are doing, but for now and in my position it's just a little too early to use WPF in production. But probably in 6 months time things will have moved on significantly.

It's getting hard work playing catch-up to all these new technologies - thankfully it's still fun.
richardb
Thursday, October 11, 2007 4:43:38 PM (Central Standard Time, UTC-06:00)
richardb. I disagree about the viablility of using WPF in production. WPF has a steep learning curve but the result of building your UI in this new framework can be astonishing. I teach WPF classes for Wintellect and I've worked with many companies building real WPF applications. Many have large teams of developers working on new WPF projects. For the kind of apps they are creating (mapping 3d geological data, complex charting, digital signs, medical applications) WPF is the best possible technology available from Microsoft. I've seen some amazing applications and WPF hasn't been out a year yet.

My take on the new binding in .NET 3.5
<a href='http://wpfwonderland.wordpress.com/2007/10/10/better-wpf-binding-in-net-35/' >WpfWonderland blog</a>
Walt Ritscher
Comments are closed.