I am trying to add a viewmodel to IoC but not much documentation is given on that subject by the project developers. I have added the following code to the app.xaml:
viewModelFactory.Register("ProfileCreateViewModel", () => new ProfileCreateView(), () => new ProfileCreateViewModel());
viewModelFactory.Register("ProfileEditViewModel", () => new ProfileEditView(), () => new ProfileEditViewModel(new Profile()));
viewModelFactory.Register("ProfileDeleteViewModel", () => new ProfileDeleteView(), () => new ProfileDeleteViewModel(new Profile()));
How do I resolve these viewmodels in controllers?
Please provide guidance, or any links or articles.
Thank you in advance.