-4
public MainPage()
    {

        this.InitializeComponent();

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

    }

Error saying Navigation Service doesnt exists in the current context.

pravprab
  • 2,301
  • 3
  • 26
  • 43
  • 1
    Please use Search button, there were many questions about that - possible duplicate of [Windows Phone 8.1 - Page Navigation](http://stackoverflow.com/questions/23154359/windows-phone-8-1-page-navigation) – Romasz Mar 27 '15 at 06:59

1 Answers1

0

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);
Greg Whatley
  • 1,020
  • 1
  • 13
  • 32