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
1
vote
2 answers

Windows Phone 7 Navigation Service URI?

In my project, I have created a separate folder called "Pages" for storing all pages except the main page. I wish to navigate to one of these pages from the main page. How do i do it? I've had no luck with: NavigationService.Navigate(new…
Atif
  • 129
  • 1
  • 14
1
vote
1 answer

WPF: Prevent Navigation Service from back navigation

I'm designing an app to update firmware on a device and use the Navigation Service to move freely from page to page. However, I want it such that once you hit the actual firmware update page, you can no longer go back, only forward. If back…
liquidair
  • 177
  • 2
  • 11
1
vote
0 answers

NavigationService won't navigate after going there via absolute Navigation

I am currently working on a Xamarin.Forms application that is targeting UWP, iOS and android. After implementing a login dialog I am navigating a logged in user to a SomeContentPage, which I now want to be enclosed into a NavigationPage (and perhaps…
renao
  • 11
  • 2
1
vote
1 answer

WPF this.NavigationService.Navigate

I am learning a WPF tutorial from Microsoft website which is following: https://learn.microsoft.com/en-us/dotnet/framework/wpf/getting-started/walkthrough-my-first-wpf-desktop-application#add-code-to-handle-events I am getting the following error…
sheraz yousaf
  • 79
  • 3
  • 7
1
vote
1 answer

Mvvm light wpf navigation

What I want to achieve. A navigation service for MVVM Light WPF where I can easily say NavigateTo(View URI or ViewModel and a string name of the framework element that should present the View or ViewModel). I first tried the View First approach…
Johan
  • 502
  • 4
  • 18
1
vote
0 answers

Function from Page1 used in Page2

I have a window with a frame. Said frame can get 2 different pages: Page1 and Page2. Page1 has combobox1 and a button1. Page2 has combobox2 and a button2. Note: combobox1 and combobox2 are populated with same data. When in Page1, clicking button1…
brian reis
  • 11
  • 5
1
vote
1 answer

MvvmCross - Passing a string with IMvxNavigationService

I'm currently working on a Xamarin.iOS project that uses a web-api to gather data. However, I'm running into some problems trying to pass the user input from a textfield to the Tableview that gets the result from the api. To do this I've followed…
1
vote
1 answer

Xamarin forms - Prism GoBackToRootAsync with parameters

I am trying to pass navigation parameters with the GoBackToRootAsync(navParams) method in Prism. But it doesn't seem to work. Is this really supported by this method? Has anyone got it working? It works fine with other navigation service methods.
VVK
  • 11
  • 1
1
vote
1 answer

How to get value from combobox from another page?

The person is choosing smth from combobox and I have to save this value and transport it to another page ? public string ToAnotherWin() { k = comboboxPrices.SelectedItem.ToString(); return k; }
1
vote
2 answers

Xamarin Forms IoC containter + navigation service

Does Xamarin.Forms have a built-in IoC navigation service? I mean something like Prism, where you could register your routes. If yes - where is the documentation? If not - will Xamarin.Forms have a built-in navigation service in near future? Also -…
pax
  • 1,547
  • 2
  • 16
  • 46
1
vote
0 answers

Scoped navigation service in Prism UWP

I am using Prism 6 for UWP and Unity. Scenario: I have a login page, and some other selection pages before I navigate to a Menu page that hosts a SplitView control. I want the navigation from this point to only target the content area of the…
Allan Smith
  • 162
  • 10
1
vote
1 answer

Passing class data on navigation to other page Windows Phone 8.1

I've a class class PTD { public string Player1 { get; set; } public string Player2 { get; set; } } And a Page1 have 2 text boxes and 1 button. The Button Click Method have following code: PTD ptd = new…
1
vote
1 answer

Replacement of NavigationService.Navigate in Universal App

I am working in migration of project from windows phone 8.1 to windows universal app. windows phone 8.1 NavigationService can be implemented in Universal App with several methods of Navigation like Frame.Navigate(typeof(MainPage)); or…
1
vote
0 answers

LongListSelector and NavigationService.GoBack()

Simply the problem is: I select one item on LLS, item template extends and there are 4 buttons. Click one of them and navigate another page. Then navigate back with NavigationService.GoBack() Here is the result I selected 3rd item and after…
1
vote
1 answer

IsolatedStorageSettings and NavigationService Error

So I took a break and went from C# to VB in developing Windows Phone 8 apps. It's just more of a test and I have this really strange problem. First off all my basic scenario is that I have Page A and Page B. The user has to fill in a few details…
Ahmed.C
  • 487
  • 1
  • 6
  • 17
1 2
3
8 9