public void Navigate(NavigationMessage navParamMessage)
        {
            navMessage = navParamMessage;

            string destination = navMessage.Destination;
            string source = navMessage.Source;
            NavService.Navigate(new Uri(string.Format("/Views/{0}View.xaml", destination), UriKind.Relative));
        }
 void MainFrame_Navigated(object sender, NavigationEventArgs e)
 {
     if (navMessage != null)
     {
         if (!navMessage.OnStack)
             RemoveBackEntry();
     }
     navMessage = null;
 }
Exemple #3
0
 private void GoToView(NavigationMessage message)
 {
     try
     {
         //Messenger.Default.Send<NavigationMessage>(message);
         navService.Navigate(message);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Navigation Error", MessageBoxButton.OK);
     }
 }