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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:26:24+00:00 2026-06-06T16:26:24+00:00

I have recently created an application for wp7. Now i am ready submit an

  • 0

I have recently created an application for wp7. Now i am ready submit an update for my app. In the i have added a UserControl page(contains a dialog box). I want it to displayed on the MainPage.xaml or in app startup but only for the first app launch. I know how to show a MessageBox for the first time but don’t know how to show a xaml page.

if (!IsolatedStorageSettings.ApplicationSettings.Contains("IsFourthLaunchDone"))
{
   MessageBox.Show("To Enable Full screen mode, go to settings and select Full Screen Browsing.");
   IsolatedStorageSettings.ApplicationSettings["IsFourthLaunchDone"] = true;
}

Can anybody help me with this? Thanks in advance for your help!

  • 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-06T16:26:26+00:00Added an answer on June 6, 2026 at 4:26 pm

    Here’s an idea of how this is properly done with a MessageBox.
    App.xaml.cs:

    public static bool IsFourthLaunch = false;
    
    ApplicationLaunching(){
    
    if (!IsolatedStorageSettings.ApplicationSettings.Contains("IsFourthLaunchDone"))
    {
         IsFourthLaunch = true;
    }
    
    }
    

    MainPage.xaml.cs:

    MainPage()
    {
       if (App.isFourthLaunch)
        {
           Loaded += OnFourthLaunch;
        }
    }
    
    public void OnFourthLaunch(object sender, RoutedEventArgs e)
    {
        Loaded -= OnFourthLaunch;
        if (App.IsFourthLaunch)
         {
           MessageBox.Show("To Enable Full screen mode, go to settings and select Full Screen Browsing.");
           IsolatedStorageSettings.ApplicationSettings["IsFourthLaunchDone"] = true;
           App.IsFourthLaunch = false;
    
         }
    
    }
    

    To do this with a UserControl, add the Control to the page, initially with a Collapsed Visibility. In the scenario you want to display it, change the visibility to Visible. You’ll need to figure out in what way you want the Control to work, and probably you’ll need to override OnBackKeyPress to provide a logical way for the user to close your control.

    protected override void OnBackKeyPress( System.ComponentModel.CancelEventArgs e )
    {    
       if (myControl.Visibility == Visibility.Visible)
       {
          e.Cancel = true;
          myControl.Visibility = Visibility.Collapsed;
          }        
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently created a version control page from my application to manage the
I have recently created a java application(calculator) in netbeans and need to make it
I have recently created an Android application that allows users to add shopping items
I have recently created a new rails 3 application, using the code that I
I have recently upgraded to Rails 3 and created a new application with Rails
I am working on an old VB6 app and have recently added the Siemens
I have recently created a small VB application for a friend of mine, I
I learned Symfony2 recently and I have created a small application with it. It
I have recently created a directory for a customer of mine. The website is
I have recently created a HTML5 canvas animation (also using Processing.js). The problem is

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.