Ejemplo n.º 1
0
 public MyViewModel1(IPageNavigationService navigator, IDestinationViewModel destination)
 {
     GoToPageCommand = new RelayCommand(() =>
                                        navigator.NavigateToDestinationPage(destination));
 }
Ejemplo n.º 2
0
 public void NavigateToDestinationPage(IDestinationViewModel dataContext)
 {
     // Page2 is the corresponding view of the destination view model
     Navigate(typeof(Page2), dataContext);
 }