Let’s walk through an example of using d:DesignInstance for improving the design-time experience in Blend. For background, see my last post on the topic. I’m going to be using the ContactManager sample from the Caliburn trunk. You can access the source...

I’ve gleaned most of what I have learned about this topic from Unni , Karl , and Jack . I recommend checking out their posts for additional information. d:DataContext The d:DataContext attribute allows you to establish a data context that is only for...

Silverlight 4 is now supporting the commanding that we’ve come to love from WPF. Commanding was a foundational feature for MVVM. It’s what enabled us to bind to methods on our view models. John Papa has an excellent introductory post on using commands...

The following code throws an exception. Can you spot the bug? public class MyControl : Control { public static DependencyProperty MyPropertyProperty = DependencyProperty.Register( "MyProperty", typeof (double), typeof (MyControl), new PropertyMetadata...