This is a duplicate post from
I've a trouble with setting up a design data with SimpleIOC.
I'm using a
By registering it:
I'm receiving a error message form MVVMlight about multiple constructors. So I've searched for a workaround:
It's working in runtime but not in design mode. I'm receiving a error about already registered factory methods. And finally a message:
A first chance exception of type 'Microsoft.Expression.Platform.InstanceBuilders.InstanceBuilderException' occurred in Microsoft.Expression.Platform.DLL
Additional information: Cannot create an instance of "ViewModelLocator".
Is there any workaround?
Made things working by making the ViewModelLocator
. I don't know if it is a right thing to do.
Thank you for your time.