Friday, November 21, 2008
#
Something we (Matt and I)have been working on for the past few days has been trying to be able to validate input forms in Silverlight. Seeing as how there wasn't a fairly straightforward framework...we decided to build our own! So, without further delay... Here it is, version 1: Silverlight.Validator
I noticed while working with Attached Properties and Dependency Properties that the code snippet is wrong. It keeps on trying using the UIPropertyMetadata. My guess is that this is an older version of the Register methods. So, here is a link (to my skydrive) that you can download and update your code snippets: cid-af5c4f2a863b6b78.skydrive.live.com/browse.aspx/Public/AttachedDependencyProperty%20Snippets. Just download the two snippets and place them in your "%Program Files%\Microsoft Visual Studio 9.0\VC#\Snippets\1033\NetFX30" directory on your development machine. Next time you use the snippet(s), they'll be updated!
Update 11/28: Laurent has pointed out that the code snippets using UIPropertyMetadata are for WPF. So, I've updated the code snippets on my skydrive. "propa" and "propdp" have been reverted to their original snippet form. I've added two snippets "slpropa" and "slpropdp" for use within silverlight. Thank you Laurent for pointing that out.