Adding transitions when changing DataContext

I have several times gotten in a discussion regarding the visual aspects around changing the DataContext. That sounds like a really interesting discussion, doesn’t it…? Well, why is it a discussion at all, why is it something that I even bother writing about (just wait until you see the amount of code I have written as well)? Well…as you might have noticed in my previous posts, data bindings are very central in Silverlight development. At least if you do it like I do it. And that means that we work quite a lot with the DataContext of different controls. And out of the box, changing the DataContext will update all the binding, which is exactly what we want. But what happens when we DON’T want the change to be instantaneous? What if we want to add some form of transition? Well…as far as I know, you are %$@ out of luck. That is why I decided to try and build something that can do it for us…in a nice re-usable package…

More...