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

NavigationUI Functionality in Custom Button

By default I have hidden a pages UI navigation bar using; ShowsNavigationUI="False"> I would like to have two custom buttons that are outside of the page and in the window that implement the navigation of backwards and forwards but not using the…
CBreeze
  • 2,925
  • 4
  • 38
  • 93
0
votes
1 answer

Navigation in WP 8.1 with MVVM Light

I can navigate to a DetailPage.xaml to show some more information, but I can't pass the object to the DetailVieModel and when I press back the App closes. Here is my code: In the ViewModelLocator public ViewModelLocator() { …
Bayern
  • 330
  • 3
  • 20
0
votes
2 answers

Navigate back without removing actual page from BackStack

I'm developing a WP 8 app and I've a problem with navigation. I can't find a way to navigate to a page on my back stack without losing my actual page state. The situation is this: I'm on page A and navigate to page B, so the back stack only…
Martin
  • 660
  • 10
  • 23
0
votes
1 answer

WPF Navigate Pages from outside frame

I have to create wpf browser application.It have 2 frames:
stefan
  • 1
  • 2
0
votes
1 answer

NavigationService throwing AccessViolationException in c# on Windows Phone 8

Bear in mind I'm very new to programming. I've managed to set up images as custom markers on bing maps, the images are chosen and placed on the map according to data coming from a JSON feed. I have a list view page where one can view flood warnings,…
0
votes
1 answer

NavigationService null in VSTO, CATEL

I'm developing a VSTO application, using the Catel framework. Trying to create user interfaces primarily from TaskPane, not Window. Therefore, my only usable control is User Control. Encountered the following issue when trying to navigate to another…
DeuS
  • 17
  • 5
0
votes
1 answer

Windows Phone 8.1 NavigationService.navigate not working

I have a problem with NavigationService. When I click the button , my application always ends, instead of having to be redirected to another page. I use NavigationService many times in my project and it works well, only in this case does not…
Fačko
  • 73
  • 11
0
votes
0 answers

Static variables turning null on Navigation

In my Windows Phone 8 application I have a class that stores in a static variable temporarily an object to be used between pages in navigation. The problem is when this object is too big, like for example a big array of bytes (about 1,000,000…
wm1sr
  • 1,905
  • 1
  • 16
  • 20
0
votes
1 answer

NavigationService error in WP8 app

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) …
Artur Tychina
  • 105
  • 2
  • 8
0
votes
2 answers

Windows Phone VB "NavigationService is not declared"

Im creating a very simple Windows Phone 8.1 app in Visual Studio Express. I have added a Hyperlink control, then from that I have double click to go to the relevant VB page. As instructed by the many tutorials out there I have added the code for…
tim.baker
  • 3,109
  • 6
  • 27
  • 51
0
votes
1 answer

Windows Phone 8.1 Page Navigation Method

I have gone through some code and got familiar with Navigation Service in Windows Phone 8.1. But I need this code to declare in my Base Page to use it every where in all other pages, declaring the code only one. For example, from the following…
Balasubramani M
  • 7,742
  • 2
  • 45
  • 47
0
votes
0 answers

wpf inherited DocumentViewer and Frame Navigation

I wrote a class that inherits from DocumentViewer public class MyDocumentViewer : DocumentViewer { public bool Landscape{ get; set; } protected override void OnPrintCommand() { // get a print dialog, defaulted to default printer…
Stefan W.
  • 342
  • 1
  • 9
0
votes
0 answers

Can i navigate from myonepage.xaml to secondpage.xaml without using the "new Uri" object in windows phone 8

i am facing a problem; during navigating the two pages my application is crashing. is it possible following scenario in windows phone 8 ? //In Myonepage.xaml on button click MySecondpage mypageobject = new…
Ashish-BeJovial
  • 1,829
  • 3
  • 38
  • 62
0
votes
2 answers

GPS Navigation Service for Windows Phone 7

I am writing application in WP7 for traveling. Is it possible to navigate to GPS coordinate with Bing Maps on WP7. I mean I have GPS coordinate, button "travel to" and after clicking it I'll have route to that point (by Bing Service)?
boski
  • 1,106
  • 3
  • 21
  • 44
0
votes
1 answer

how to retrieve the instance of library which is invoked using navigationservice.service () in wp8

I have created an authentication library in wp8 which requires me to provide a login screen UI and return the session id and other login details on authentication with server.. I have an API which returns the login data.. Now in the app im going to…
1 2 3
8 9