Is Dependency Injection possible with a WPF application?

前端 未结 8 1019
忘了有多久
忘了有多久 2021-01-30 21:05

I want to start using dependency injection in my WPF application, largely for better unit testability. My app is mostly constructed along the M-V-VM pattern. I\'m looking at Aut

8条回答
  •  时光取名叫无心
    2021-01-30 21:39

    You should take a look at Caliburn - it's a simple WPF/Silverlight MVC framework with support for full DI. It looks really cool and it lets you use any IoC container you want. There are a couple of examples on the documentation wiki

提交回复
热议问题