title: How to Show a Page if Application is Launched for the First Time
body: <p>I am wondering how to signal whether an appication is launched for the very first time, or has already been launched before. The reason I want to do this is to show a very short informative message before the application is ever used, while every other time the application is launched nothing shows. Would I place something in App.xaml.cs like the following</p>
  
  <pre><code>var settings = IsolatedStorageSettings.ApplicationSettings;
  if (!settings.Contains("WasLaunched")) 
  {
    MessageBox.Show("First time to launch");
    settings.Add("WasLaunched", true);
  }
  </code></pre>
  
  <p>And if <code>(!settings.Contains("WasLaunched")</code> navigate to the 'first launch page' as opposed to the 'main page'? Can someone point me to any good references on this implementation?</p>
  
  <p>EDIT**</p>
  
  <p>I changed my <code>WMAppManifest.xml</code> default page to <code>LaunchPage.xaml</code></p>
  
  <pre><code>&lt;DefaultTask Name="_default" NavigationPage="LaunchPage.xaml" /&gt;
  </code></pre>
  
  <p>And created my UriMapper class</p>
  
  <pre><code>public class LoginUriMapper : UriMapperBase
  {
      public override Uri MapUri(Uri uri)
      {
          if (uri.OriginalString == "/LaunchPage.xaml")
          {
              if (Settings.FirstLoad.Value == true)
              {
                  //Navigate to Welcome Page with quick first time user info
                  uri = new Uri("/Views/WelcomePage.xaml", UriKind.Relative);
              }
              else
              {
                  ///Navigate to the actual Main Page
                  uri = new Uri("/MainPage.xaml", UriKind.Relative);
              }
          }
          return uri;
      }
  }
  </code></pre>
  
  <p>But how do I change App.xaml.cs accordingly</p>
  
  <pre><code>private void Application_Launching(object sender, LaunchingEventArgs e)
  {
      //how to check and navigate to correct page for this specific method?
  }
  
  private void Application_Activated(object sender, ActivatedEventArgs e)
  {
      //how to check and navigate to correct page for this specific method?
  }
  </code></pre>