i'm new in WPF and i would like navigate between different page like in UWP (thanks to ViewModelLocator). I'm programming with mvvm pattern
With UWP it's so easy =>
ServiceLocator.SetLocatorProvider(()=>SimpleIoc.Default);
SimpleIoc.Default.Register<HomeDeconnectedViewModel>();
NavigationService navigationPage = new NavigationService();
SimpleIoc.Default.Register<INavigationService>(() => navigationPage);
navigationPage.Configure("HomeDeconnected", typeof(HomeDeconnected));
Thanks everybody
Edit To solve this issues i use this link https://gallery.technet.microsoft.com/Simple-navigation-2be2ef4a i've just use mvvmLight in additionnal and the difference is small
(We can close this issue)