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
0 answers

NavigationService.GoBack() skips a page

I'm using NavigationService.GoBack() to close a page once the user finished his input. The backstack is printing fine, so I'm sure that all the pages are stored correctly, but calling GoBack() makes it skip a page and I don't know why. Here's my…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
1
vote
2 answers

Windows Phone "Home" button press simulation

Is it possible to simulate "Home" button press in Windows Phone? I'm trying to override back key press and make deactivation because my app has Fast Resume enabled and it is critical for me not to exit by back key but deactivate (home button press)
Mando
  • 11,414
  • 17
  • 86
  • 167
1
vote
1 answer

NavigationService not navigating, async related?

Ok I have the following in a wp7 app. I am using Microsoft.Bcl and Microsoft.Bcl.Async. async void FB_Login() { Bool LoggedIn = false; LoggedIn = await LoginToFB(); if(LoggedIn) { SaveProfile(); …
Gaz83
  • 2,293
  • 4
  • 32
  • 57
1
vote
2 answers

Is there any way to get previous page url in silverlight navigation application

Is there any way to get previous page url in silverlight navigation application. I am using navigation Service.
user1173233
1
vote
2 answers

SelectionChanged get Textblock Text/ID

I have som listbox and i need som help to get text from x:Name="ThisID" on SelectionChanged. I've did something like (sender as ListBox).SelectedItem but more than that, I do not know how to do.
1
vote
2 answers

NavigationServiceNavigate not working WP7

When I use this in my .NET codebehind: NavigationService.Navigate(new Uri("DetailsPage.xaml", UriKind.Relative)); I get redirected to App.xaml.cs and it points to this code. // Code to execute if a navigation fails private void…
eaglei22
  • 2,589
  • 1
  • 38
  • 53
1
vote
0 answers

WPF navigation services goBack not working

I have a navigationWindow and some pages. The application startupURI is set to 'page1.xaml' . If I show the NavigatoinUI, the forward and back buttons work perfectly, however if I call navigationserivce.goBack() I get an exception "Cannot navigate…
Jay
  • 2,077
  • 5
  • 24
  • 39
0
votes
1 answer

Creating a Page in the Code Behind at Run-time

I'm reading about the WPF Navigation Services and I have a general question. At run-time I want to be able to parse an external XML file that has information about an UI (i.e. a series of screens) and then in the code-behind create a WPF Navigation…
zzMzz
  • 467
  • 1
  • 5
  • 21
0
votes
1 answer

Form events are not fired through NavigationService

I have WindowsFormsHost inside the WPF page say Page1 WindowsFormsHost has child winform say Form1. Form1 has Paint method Form1_Paint(); I am navigating from Page1 to Page2 using NavigationService. When I came back from Page2 to Page1 using…
meetjaydeep
  • 1,752
  • 4
  • 25
  • 39
0
votes
2 answers

Navigate to new Page in Codebehind using NavigationService

I want to access my page to setup the XAML Page: Dim Pg As New PageListPickerSelection Pg.StartCalculating(199,"Z-UU", MyCalculationDataIEnumList, myImageSource) App.NavigationService.Navigate(New Uri("/uc/ListPicker/PageListPickerSelection.xaml",…
Nasenbaer
  • 4,810
  • 11
  • 53
  • 86
0
votes
1 answer

Page Transitions not working for ForwardIn upon navigation

I have multiple pages in my WP7 app and I move in and out of apps by selections made during usage of the app. it is a data heavy app, but i'm not doing anything else but fill up the control by using its own ViewModel. The ForwardIn transition…
Jay Kannan
  • 1,372
  • 3
  • 14
  • 30
0
votes
1 answer

Windows phone Mango - Navigation in progress

One of the pages my in application lets a user take a picture and in the meanwhile, if image is being processed, later a NavigationService GoBack is called. Now, if user clicks power button on the phone, the phone goes to sleep, and then immediately…
0
votes
1 answer

NavigationService - GoBack or Navigate

This is maybe more of a design issue, but has also a technical background. In my current app I have following views: MovieOverview FriendsOverview The app starts and will show 'my' movie collection ( with the MovieOverview view ) and you'll have a…
Depechie
  • 6,102
  • 24
  • 46
0
votes
1 answer

Create a Container for WPF Custom Navigation

I have an app where there's a small panel that needs to support browser like navigation such has back, forward, and home. Thus it also needs to hold a history of panels the user has gone to. I don't think I can use NavigationWindow because only a…
Jeremy Edwards
  • 14,620
  • 17
  • 74
  • 99
0
votes
0 answers

Page animation in WPF Slide In and Out

So I am developing a WPF application. I am kind of newbie in this area. Idea: I need to navigate to a new page whenever there is a interrupt. I have implemented page navigation using Navigation service. I have entry and exit animation for few…
Deep1234
  • 1
  • 1
1 2 3
8 9