Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mvvm light - NavigationService / DialogService classes not found

Tags:

c#

wpf

mvvm-light

Should be a simple answer, but I'm not seeing it.

MVVM Light v5 introduced a NavigationService and DialogService. I wanted to make a sample application to play around with them. The advice seems to be that all i need do is register them in the ViewModelLocator as such:

SimpleIoc.Default.Register<IDialogService, DialogService>();

The IDialogService needs the Galasoft.MvvmLight.Views namespace, which gets automatically resolved, but the DialogService class cannot be found, and VS cannot recommend a namespace to import.

Similar for NavigationService

like image 927
SeeMoreGain Avatar asked May 19 '15 06:05

SeeMoreGain


1 Answers

I'm assuming you are using WPF, in which case there isn't a default implementation of IDialogService and INavigationService. Thus you will need to create your own implementations.

like image 81
Bracher Avatar answered Oct 12 '22 20:10

Bracher