Link to home
Start Free TrialLog in
Avatar of SmashAndGrab
SmashAndGrab

asked on

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
Avatar of Paweł
Paweł
Flag of Switzerland image

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
Avatar of SmashAndGrab
SmashAndGrab

ASKER

User generated image
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
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;
ASKER CERTIFIED SOLUTION
Avatar of Paweł
Paweł
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial