Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9093891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:13:10+00:00 2026-06-16T23:13:10+00:00

I am building this application that will give the user some information based on

  • 0

I am building this application that will give the user some information based on the user’s name, age and location.

If the application is launched for the first time, i want to redirect the user to FirstTimePage.xaml where he can save his name, age and location.

if the user isnt opening the application for the first time, the application retrieves the name, age and location from Isolated Storage so there is no need to go to the FirstTimePage.xaml

Currently, I am checking on MainPage.xaml if the data on Isolated storage exist. If they exist, the user stays on MainPage.xaml. If they dont exist, the user is redirected to FirstTimePage.xaml.

My problem:

The first time the user will open the application, even if they are redirected to FirstTimePage.xaml, for a few frames they see the MainPage.xaml. Not even a second, but it is a little ugly. So I tried to put the “checking” code to app.xaml.cs (inside the codeblock that is executed when the application is launched)

The thing is that it doesnt recognises the Navigation code. It gives me an error at the bold word “NavigationService.Navigate….”

What can I do to solve my problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:13:12+00:00Added an answer on June 16, 2026 at 11:13 pm

    In order to control navigation you need to call the Application.Current.RootFrame to gain access to the NavigationService prior to a page actually being loaded.

    private void Application_Launching(object sender, LaunchingEventArgs e)
        {
                //Logic should go here to determine what page needs to load
                Uri nUri = new Uri("/Page1.xaml", UriKind.Relative);
                ((App)Application.Current).RootFrame.Navigate(nUri);
    
        }
    

    See: Setting the start page for a more in depth discussion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is an academical exercise (disclaimer). I'm building an application that will profit from
Whats the best way to implement this. I am building application that will be
I'm building a web application that will allow team collaboration. That is, a user
I'm currently building a rails application that contains 3 user types. This is my
I have an application that uses the .NET framework 3.5. I am building this
I am building a C++ application that uses Intel's IPP library. This library is
Ok, this is downright bizarre. I am building a web application that relies on
I am building a web application that will essentially allow authenticated users access to
My team (3 developers) will be building a Silverlight LOB application. This is the
I am new to this codeigniter. I am building a application where in user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.