Reputation: 313
In a ViewModel, is there a way to resolve a dependency using PRISM that is not by contructor injection? In Caliburn Micro you can do something like
_myService = IoC.Get<IMyService>();
but is there a way to do the same thing in PRISM? Example?
Upvotes: 1
Views: 190
Reputation: 1838
PRISM is bundled with Unity and MEF for dependency injection - and both support property injection as well as constructor injection. If you don't want to use constructor injection, you can use the relevant attribute and tag injectable properties.
Upvotes: 1