August 2009 Blog Posts

An Escrow Account for Irregular Bills

This is a non-technical post.  It’s certainly geeky though. We all have them: bills that are due on something other than a monthly schedule.  Car insurance, home owner’s insurance, life insurance, vehicle registration, Pandora One, pick your poison.  It can be difficult to work these bills into the monthly budget since they don’t hit you every month.  Worse yet, you might forget which month a large bill will be due and fail to plan accordingly. About a year ago, my wife and I came up with a strategy that has been working out really well for us: use...

posted @ Friday, August 14, 2009 4:26 AM | Feedback (10)

Add/Remove with DataForm and RIA Services

Note: The limitations discussed herein no longer apply once you get WCF RIA Services V1 SP1 Beta (or later). See Kyle McClellan's blog for more info. Tom Beeby posted a topic on the RIA Services forums about adding a new entity via the DataForm buttons.  Specifically, he pointed out a problem where the DataForm does not light up the Add/Remove buttons when bound to an EntityList from your DomainContext.  To exacerbate the problem, it turns out that binding to an EntityCollection<T> from RIA Services won’t let you Add or Remove either.  I’ve dug into this problem with some team members,...

posted @ Friday, August 14, 2009 1:50 AM | Feedback (30)

Sharing Source with Silverlight

I am one of the proud folks that gets to work on the System.ComponentModel.DataAnnotations assembly.  This assembly is used by several products, and it seems more are starting to depend on it.  Part of the fun with this assembly is that it exists for both Silverlight (as of Silverlight 3), and the full .NET Framework (as of .NET 3.5 SP1). I am responsible for managing source code sharing of this assembly for the two frameworks; in fact, I’m doing some work today related to this.  Phil asked me for tips on how to work on projects that need to...

posted @ Wednesday, August 12, 2009 9:10 AM | Feedback (1)

Not Breaking on ValidationException (take 2)

Awhile back, I blogged about how Silverlight uses Validation Exceptions, which can cause the debugger to break.  I showed how to prevent that from happening, but the solution was less than ideal. Someone named rlodina commented on the post: What about manual adding: System.ComponentModel.DataAnnotation.ValidationException in this list. This comment has been sitting in my inbox for about a week, and I had wanted to follow up on this.  Well good gosh, this is easy and it works like a charm.  You can in...

posted @ Friday, August 7, 2009 7:44 PM | Feedback (6)