Question

I have a folder named Views and inside it I have pages I want to navigate to. There is a page inside this folder named "Y.XAML" so I'm trying to use:

NavigationService.Navigate(new Uri("Viev//Y.xaml", UriKind.Relative));

Why is this not working?

Was it helpful?

Solution

Try this.

NavigationService.Navigate(new Uri("/Views/YourPage.xaml", UriKind.Relative));

OTHER TIPS

  1. You Navigate to "Viev" not "Views".
  2. Its Views/Y.xaml not Views//Y.xaml

Other then that it should work. If not, provide more Information

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top