public MainPage()
{
this.InitializeComponent();
NavigationService.Navigate(new Uri("/SpillGuard.xaml", UriKind.Relative));
}
Error saying Navigation Service doesnt exists in the current context.
public MainPage()
{
this.InitializeComponent();
NavigationService.Navigate(new Uri("/SpillGuard.xaml", UriKind.Relative));
}
Error saying Navigation Service doesnt exists in the current context.
Like Romansz said, try searching a little bit harder next time.
NavigationService
does not exist because it is only used in Windows Phone Silverlight apps. Use Frame.Navigate()
:
Frame.Navigate(typeof(YourPage), optionalParameter);