Validation with Silverlight 3 and the DataForm

Saturday, October 03 2009 - , ,

My latest Data Points column is now online and in print in the October 2009 issue of MSDN Magazine. The column’s title is “Validation with Silverlight 3 and the DataForm” which focuses on the validation features in Silverlight 3. This includes the DataForm, the validation XAML binding attributes, and the DataAnnotations.

Code alert: I’ve been made aware that the code for the article linked to in the online version may not be valid at this time. So for now you can download the code form my site from this link. (The link will be corrected on the MSDN site in a few days.)

2 comment(s)

In This Issue: Laurent Bugnion , Chad Campbell , Mark Miller , Jacek Ciereszko , Laurent Duveau , Kirupa

Emily wrote on Monday, October 26 2009

I am working through your book and just read this article. I have a situation where I am working on SL3 (UI layer), ADO.NET Data Services 1.0 (service layer), and a custom data source layer (BLL). I tried using DataAnnotations to decorate my properties within my BLL but when I went to my SL application to generate the proxy classes via 'Add/Update Service Reference', those DataAnnotations from the server (BLL) do not trickle through. In your book in Chapter 11, in the samples, you extend the proxy classes by adding your own partial classes but you don't have examples for DataAnnotations. Basically, my question is, how can I take advantage of DataAnnotations in my scenario. I can't use RIA Srevices and thus cannot create Metadata files/extensions. Thank you!