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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:59:57+00:00 2026-05-27T09:59:57+00:00

I hava a WP 7.5 app. I have a splash screen and then comes

  • 0

I hava a WP 7.5 app. I have a splash screen and then comes my MainPage.xaml that has a copyright disclaimer and Start Button. User clicks the button and it goes to our home screen(Home.xaml) where user can start core interaction with the app.

What I want is:

1: The copyright screen i.e. MainPage.xaml should appear only the very first time the user start the application after installing it. Upon subsequent start from the application menu or Tile(s), I don’t want to show copyright Page.

2: Same thing that once user click the Start/Accept button and goes to the Home.xaml, he or she cannot go back to MainPage.xaml by clicking the back-button but instead clicking back from home screen, they should exit the application.

What I did so far:

1: For MainPage.xaml’s OnNavigateTo I check for an ApplicationSetting key, showCopyright. If it is not found or true, I do nothing. If it is false, then I use NavigationService.Navigate to my Home.xaml.

2: Upon Start/Accept button, I set the ApplicationSettings key to false.

Problem with the above approach:

1: If I use back button from HomeScreen, I go into infinite loop. The app should exit but it doesn’t.

Questions:

1: Is the above approach right or is there a better approach?

2: If I am in right direction, how do I make my application exit upon back button when I am on Home.xaml?

Thanks, any pointers please?

Edit: For the records sake– I found a nice explanation here about explicit Exit from Windows Phone application. As of WP7.1/7.5, there is no built-in way to Exit an Silverlight WP app explicitly.

  • 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-27T09:59:57+00:00Added an answer on May 27, 2026 at 9:59 am

    You can remove Backentry of the Navigation service in the new page(Home.xaml) on the back key press which makes breaks the infinite loop.

    Please add the following code in the Home.xaml.cs and try

    //this works only in 7.1 SDK
    protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
            {
                try
                {
                    if (NavigationService.CanGoBack)
                        NavigationService.RemoveBackEntry();
                    base.OnBackKeyPress(e);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Exception = " + ex.Message);
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hava a application that works with pictures(just a full screen app with 3
I hava a simple set of two related tables of an 'order' that has
I hava a RadioButtonList control on my page that has multiple option.I want to
I hava a functoin that call himself occasionally, that function has some asynchronous call
I hava set up AJAX script that when you click the button it calls
So I'm making an Ajax request in a Rails app and I hava a
I hava a CSV file that I want to treat as source code. Essentially
I hava a form (form_remote_tag) that updates a comments section. The form is in
I am writing a project on Google App Engine, within it I have a
i hava two text boxs in flex.have to add two txt boxs values in

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.