I\'m getting an \"Object reference not set to an instance of an object\" error when I try to reload the Designer for my XAML UserControl. Visual Studio highlig
It's probably something in the constructor of your user controls. VS2008 WPF designer appears have some issues with this.
In a project we took over, we added:
if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
{
return;
}
to the beginning of the constructor of the user controls where this happens to avoid that error.