I'm trying to implement simple code, that allows user to go to another app-page with transferring parameter/variable "Totall" to next page:
Private Sub HyperlinkButton_Click(sender As Object, e As RoutedEventArgs)
NavigationService.Navigate(New Uri("/Mainpage.xaml?totall=" & Totall, UriKind.Relative))
Me.Frame.Navigate(GetType(MainPage))
End Sub
But I get an error "NavigationService is not declared". Why is happening? This is WP8.1 app on Framework 4.5 This is not a Silverlight app. Yes, I have declared Imports Windows.UI.Xaml.Navigation Thank you!