Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
5.00/5 (4 votes)
See more:
I have been looking at the few samples available for MVVMLight. I have seen them use the Microsoft ServiceLocator, but when I search for it, I discover that it is obsolete. This was uses with the MVVMLight SimpleIOC. I have seen the following:

ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);

I have seen a few sample of using SimpleIoc on its own. I think this is what I should do, and I can do away with the ServiceLocator. Are there any recommendations on how I should use the SimpleIoc in my project

What I have tried:

I have tried to looked up ServiceLocator on the internet
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900