Page navigation in windows phone 8.1 application not working.

Hi - thanks for looking!

I am trying to do something that should be very simple but is proving difficult!
I am trying to navigate from one page to another in my windows phone 8.1 application.

I have tried 2 different methods but neither work - see screenshot.

Any ideas?

Thanks
SmashAndGrabAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PawełI Design & Develop SoftwareCommented:
can't see the screenshot, but what you're looking for is the following

((Frame)Window.Current.Content).Navigate(typeof(TopicPage))

TopicPage is the actual class name of the view (page) you're trying to navigate to, you'll also have to include the namespace of the page
SmashAndGrabAuthor Commented:
Nav Issue
PawełI Design & Develop SoftwareCommented:
do you have a navigation service?

try what i recommended above

((Frame)Window.Current.Content).Navigate(typeof(PreLogin))

you'll have to include some using statements
SmashAndGrabAuthor Commented:
Thanks!  

Sorry - I am new to WP dev.

What do you mean do I have the naivigation service?

Which using statements do i need?

Currently I am using:

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Storage.Pickers.Provider;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
PawełI Design & Develop SoftwareCommented:
you have to add
using Windows.UI.Xaml;

and the namespace for you views folder something like

using QRReader.Views;

and that should get your navigation working.

a navigation service is a class that you would write or leverage from a framework that would encapsulate all the things required for navigation here's one that i use from template 10

https://github.com/Windows-XAML/Template10/blob/master/Template10%20(Library)/Services/NavigationService/NavigationService.cs

anyway that's probably a bit much for someone just getting stared. I recommend going through the following

https://www.youtube.com/watch?v=97u6eB4X8yU&list=PLSHRKznzO9qSyi4X4PR5mNMPnvBdZNCw6

to get started

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Phone

From novice to tech pro — start learning today.