modern ui wpf navigation
问题 I'm using modern ui wpf and trying to navigate from CheckLogin.xaml page to MainWindow.xaml page (they are in solution root directory). From inside CheckLogin.xaml I wrote this: BBCodeBlock bbBlock = new BBCodeBlock(); bbBlock.LinkNavigator.Navigate(new Uri(url, UriKind.Relative), this); I used the following values for url: "/MainWindow.xaml", "pack://application:/MainWindow.xaml", but an exception thrown "Unable to navigate to pack://application:/MainWindow.xaml, could not find a ModernFrame