I have a window, which contains a frame. The frame's source loads in as "HomePage.xaml".
I am converting everything over to MVVM, but struggling. Previously, I had this function in the code behind:
private void HiscoreStatsTile_Click(object sender, RoutedEventArgs e)
{
NavigationService navService = NavigationService.GetNavigationService(this);
ChartTest x = new ChartTest();
navService.Navigate(x);
}
However, I can't quite get this to work as a command in my viewmodel. How should I get a hold of that frame containing the view, and navigate it to a new page?