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 3483318
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:39:37+00:00 2026-05-18T10:39:37+00:00

Apologise if there is answer for this somewhere else, I can’t find any. I

  • 0

Apologise if there is answer for this somewhere else, I can’t find any.

I imagine this is a common situation. The first time the user runs the application I want them to be presented with the SignIn.xaml, if they don’t have any saved details, else I just want to go straight to the MainPage.xaml.

I’d usually do this by sticking a check in the constructor of the MainPage and if they don’t have details navigate away. The problem I have is that

NavigationService.Navigate(new Uri("/SignIn.xaml", UriKind.Relative));

is coming up as a null reference. What am I missing? Is there a proper way to do something like this in WP7?

Thanks

  • 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-05-18T10:39:37+00:00Added an answer on May 18, 2026 at 10:39 am

    Unfortunately the WP7 navigation framework doesn’t handle the “do something on first run” situation very nicely at all.

    I suspect the problem you’re seeing is that you don’t have a NavigationService yet… but even if you did, you’d have a problem: the user could still hit the “back” button. You can’t even work around that, because the user pressing back should exit the app… but there’s no way I’m aware of for doing that without already being at the first page naturally when the user hits the back button.

    The only workaround I’ve found for this is to have the “sign-in” view in the same page as the normal first page, and display one or the other conditionally. Yes, it sucks… but it’s the only approach I’ve found which works. If you find another, I’ll be happy to hear about it 🙂

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

Sidebar

Related Questions

Apologies if there answer is already out there, but I could not find it.
I apologise in advance if this question isn't very specific. Would it be possible
I apologize if this is slightly off-topic. I'm hoping to find a software-as-a-service CRM
Am still new to Haskell, so apologize if there is an obvious answer to
I've been searching high and low for a satisfactory answer to this and failed.
apologies if this is redundant, I spent a good deal of time trying to
This might be one of those questions that are difficult to answer, but here
What's the difference between the following two pieces of HTML (apologies if there are
Apologies if any of what I'm about to say makes no sense or overlooks
I apologize for asking such a generalized question, but it's something that can prove

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.