How to Navigate from One Page to Another in WPF

c#, mvvm, wpf, xaml

Solution

private void Navigate_Click(object sender, RoutedEventArgs e)//By Prince Jain 
{
   this.NavigationService.Navigate(new Uri("Page3.xaml", UriKind.Relative));
}

Problem

I have a `MainWindow.XAML` and `CustomersView.XAML`. When I click the Customer Button on MainWindow , I want to navigate to `CustomersView.XAML` and palong with that need to pass few parameters. I can use `NavigationService` but is only available with Pages and not Window.Hyperlink is not an option at this moment. This might be fairly simple thing but not sure how can I implement this using MVVM and with out any third party control.

Original source