0

I am using Prism unity as dependency injector in my WPF project. My ViewModels are located in a folder. Can you tell me if there is a way to autowire these ViewModels to my view ?

Thanks in Advance

Ehsan Sajjad
  • 61,834
  • 16
  • 105
  • 160
Naveed Khan
  • 73
  • 2
  • 15
  • Define *autowire* ... – Jim Nov 22 '16 at 15:20
  • xmlns:mvvm="http://prismlibrary.com/" mvvm:ViewModelLocator.AutoWireViewModel="True" – Naveed Khan Nov 22 '16 at 15:25
  • If you have a folder name which is not named ViewModels then this should be useful http://brianlagunas.com/getting-started-prisms-new-viewmodellocator/ read at the paragraph "Change those Nasty Conventions" and look at ViewModelLocationProvider. – adminSoftDK Nov 22 '16 at 15:49

0 Answers0