Questions tagged [navigationservice]

NavigationService Class is a .NET Framework class which contains methods, properties, and events to support navigation. Namespace is System.Windows.Navigation.

From MSDN's documentation on NavigationService:

NavigationService encapsulates the ability to download content within the context of a browser-style navigation.

Content can be any type of .NET Framework object and HTML files. In general, however, pages are the preferred as the way to package content for navigation Content can be navigated to by providing an instance of an object and calling an overload of the Navigate method that accepts an object:

NavigationService.Navigate(Object)
NavigationService.Navigate(Object, Object)

Alternatively, content can be navigated to by passing a relative or absolute uniform resource identifier (URI) to one of the Navigate method overloads that accepts a URI:

NavigationService.Navigate(Uri)
NavigationService.Navigate(Uri, Object)
NavigationService.Navigate(Uri, Object, Boolean)

When content is navigated to by URI, NavigationService will return an object that contains the content.

The lifetime of a navigation can be tracked through the following events:

Navigating
Navigated
NavigationProgress
NavigationFailed
NavigationStopped
LoadCompleted
FragmentNavigation
128 questions
0
votes
1 answer

NavigationService.navigate not working

At a login page, I checked for the validity and I made a simple condition: if (everything is good) { this.NavigationService.Navigate(new Uri("/implementationPage.xaml", UriKind.Relative)); } Then comes an error that points to this…
0
votes
1 answer

navigationservice has no constructors defined

I am using Visual Studio Express 2012 for Windows Phone and building an app targeting Windows Phone 7.1. I am trying to use NavigationService to navigate to a different page but I keep running into problems. Here is my code: private void…
Kamal
  • 383
  • 1
  • 6
  • 16
0
votes
1 answer

NavigationService not working in Silverlight

I'm trying to change the loaded page in my OOB Silverlight application. I've added reference to Navigation assembly, but still, when I tipe NavigationService. and ctrl+space, I can't see any of the methods or properties that i should. Here's that…
Milos Maksimovic
  • 299
  • 2
  • 5
  • 17
0
votes
1 answer

NullreferenceException when using NavigationService

I'm encountering a problem with my WP7 app: I'm trying to make a login page prompt only when the app can't detect any stored username or password values; however, I keep running into a NullReferenceException when I try to navigate to my login…
docaholic
  • 613
  • 9
  • 29
0
votes
2 answers

windows phone navigation immediately after loading page

I have 2 pages.(MainPage.xaml,second.xaml) MainPage.xaml is the Login page. In this page I send login and password, and receive result. I save them(result) in Isolate Storage and navigate to the second.xaml page; When i start this application in the…
chromigo
  • 1,134
  • 1
  • 15
  • 25
0
votes
1 answer

Is there a case where the OnNavigatedTo() function is not called when using NavigationService.GoBack()?

I'm working on a Windows Phone 7 Silverlight application. I was wondering if there is a case where the OnNavigatedTo() function is not called when using NavigationService.GoBack() ? I'm working with two pages, one can add items to a database and the…
bergermeister
  • 134
  • 2
  • 10
-1
votes
1 answer

Casting exception in the NavigationService

I have two Pages (MainWindow & Client) and I'm trying to use the NavigationService to navigate between my pages. When I navigate from MainWindow to the Client it works, but when I try to navigate from the Client to the MainWindow it gives me an…
Wassim AZIRAR
  • 10,823
  • 38
  • 121
  • 174
-1
votes
1 answer

windows phone 7 how to pass Array value from one scree to another screen

///first I have crated Popular class for storing values public class Popular { public string trk_mnetid,trk_title , art_mnetid, art_name, image_url; } /// create popularplaylist class public partial class PopularPlaylist :…
1 2 3
8
9