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
2
votes
1 answer

Navigation to new Page fails: Automatically returns to previous page on Windows Phone 8

I have created a Pivot app, launch HomePage and using a Button, I navigate to a new blank page. private void Forgot_Password_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/ForgotPasswordPage.xaml",…
2
votes
1 answer

Animation transitions between pages with Navigation Service

I am using WPF in C# and NavigationService. For example: this.NavigationService.Navigate(new CategoryPage()); How can I add transition fade or any other animation to navigate between pages?
Dim
  • 4,527
  • 15
  • 80
  • 139
2
votes
2 answers

Storing variables between pages VB WP8

I have an app that records time as you press a button. So leave office, arrive site, leave site and arrive office. I have created a button that allows the user to input what parts have been used on the job. This takes you to another screen where…
2
votes
0 answers

NavigationService navigates to non-existing object when GoBack() is called

I am working on a WPF web application with a MainPage which is using ninject to load pages. Basically I am woundering if there is a way to tell NavigationService that an Id has changed because a user updated a value in a composite key. I'll do my…
2
votes
1 answer

unauthorized access exception was unhandled

I need to call an xaml file from a click event and I am using c# for my development. I have created the Xaml file and done with the design part in it, now I need to call this xaml file from my application. I tried the…
1
vote
1 answer

PageFunction OnReturn and the Default PageFunction Constructor

I'm trying to create a Wizard at runtime in VB.NET using the WPF NavigationService and I'm having some problems. I need to add controls to the PageFunction pages at runtime which seems to involve passing arguments to the PageFunction pages when I…
zzMzz
  • 467
  • 1
  • 5
  • 21
1
vote
1 answer

Call NavigationService from Silverlight UserControl that contains Navigation Frame

I have a UserControl that contains a Frame with a UriMapper. This is also my RootVisual, so it is what is loaded when the application is loaded. This is my (simplified) XAML:
Peter
  • 13,733
  • 11
  • 75
  • 122
1
vote
1 answer

webBrowserNavigated & NavigationService.GoBack() WP7

What i use: a list of 10 webbrowsers a tabIndex ( index of current webbrowser) different pages that use NavigationService.GoBack() to get to the Mainpage. the problem: everytime i use GoBack() to get to the mainpage and navigate, the Navigated-event…
roqstr
  • 554
  • 3
  • 8
  • 23
1
vote
1 answer

How can i use NavigationServices in Application_Activated windows phone 7?

im developin an app for wp7 that it holds pictures and notes with password login. But when app running if user press windows button app is running at background and if user press back button it resumes without asking password again. i tried to…
yasinoner
  • 13
  • 4
1
vote
2 answers

How to access objects between two xaml pages in wp7?

I'm working on a wp7 application which consists of two xaml pages. Pages are Page1 and Page2. Page1 consists of a slider which has a range of values between 0 to 10. My program is,if I slide the slider to reach value = 10,it should navigate to…
Siddharth Thevaril
  • 3,722
  • 3
  • 35
  • 71
1
vote
1 answer

NullReferenceException when setting NavigationService source

I'm trying to navigate to MainPage.xaml if access_token isn't set. public Menu() { InitializeComponent(); if (((App)App.Current).access_token == null) { NavigationService.Source=new…
SevenDays
  • 3,718
  • 10
  • 44
  • 71
1
vote
1 answer

Windows Phone 7 - missing overload for NavigationService.Navigate(object)

I would like to use the NavigationService to create a nice navigation stack in a Windows Phone 7 app. It seems I can accomplish the objective in SilverLight by using the NavigationService.Navigate(object) method and passing an object similar to the…
benhorgen
  • 1,928
  • 1
  • 33
  • 38
1
vote
2 answers

WPF Navigation while Keeping Menubar (Header) and Footer Fixed

We used to develop application with WinForms and nowadays we are trying to migrate it to WPF, starting from zero. In our application we have 3 main parts on screen which are Header (all main menu items), body (based on MDI container, content can be…
1
vote
1 answer

Flutter accessing a Value that i passed from my NavigationService

I have a NavigationService with which I pass a value to another screen. But i can´t really access this value i passed to the new Screen. My NavigationService: class NavigationService { final GlobalKey navigatorKey =…
Rashorr
  • 51
  • 7
1
vote
1 answer

Navigate away after PhoneNumberResult

This is specifically a Caliburn.Micro question I think, as it has to do with how CB handles navigation in windows phone 7. I have a view that has the option of launching a phone number chooser. Once the result comes back I store it and navigate…
deanvmc
  • 5,957
  • 6
  • 38
  • 68
1
2
3
8 9