First of all, the problem may be simply that you need to add IsDesignTimeCreatable=True
to your d:DesignInstance
declaration, like this:
d:DataContext="{d:DesignInstance Type=local:MyViewModel, IsDesignTimeCreatable=True}"
If that doesn't help, the issue might be that your view model does not have a parameterless constructor or the it fails to set a value for InternalViewModelProperty
in its constructor.
In other words, your view model needs to have a constructor with no parameters, and within that constructor, you need to set InternalViewModelProperty
to a non-null value. Further, you need to make sure the Collection
property of InternalViewModelProperty
is also set to a non-null value.