if i have many view models i want to call using sidebar menu , and each button inject a diff view in my *mainWindow.xaml* how i would do this using your automatic ViewModelLocator model ?
The VML only creates and assigns the Vm to the DataContext of the view. All you have to do is create an instance of the view and the Vm is automatically created for you.
thanks for all your work!!!
Prism Lib is greattttttt
Thanks for watching!
if i have many view models i want to call using sidebar menu ,
and each button inject a diff view in my *mainWindow.xaml*
how i would do this using your automatic ViewModelLocator model ?
The VML only creates and assigns the Vm to the DataContext of the view. All you have to do is create an instance of the view and the Vm is automatically created for you.