I'm trying to improve on my design time experience in Blend.
I know I can do something like:
d:DataContext="{d:DesignInstance local:vm_d, IsDesignTimeCreatable=True}"
and blend/vs will show my bindings to vm_d at design time, however this seems somewhat limited (i.e. when using DI, generics, not to mention it seems odd to me that I have to edit XAML by hand to "improve my design time experience").
What I'd rather do is something like this in the code behind:
public SimpleLoad()
{
InitializeComponent();
DataContext = new vm_d();
}
I assume one problem is I need to set IsDesignTimeCreatable? In any case does anyone have an idea how I could implement this?