Windows Phone,Page Loading:最佳方法

Ach*_*les 0 windows-phone-7

我有一种情况,我需要根据条件加载页面:

条件是

if( First time application is launched){

Load aggrement page;
}
else{

Load main Page;
}
Run Code Online (Sandbox Code Playgroud)

对此最好的方法是什么?我应该检查以下情况:

private void Application_Launching(object sender, LaunchingEventArgs e)
{

}
Run Code Online (Sandbox Code Playgroud)

或者在initializeCOmponent()调用之前的主页面中?

Igo*_*lic 5

尝试这样的事情:

private void Application_Launching(object sender, LaunchingEventArgs e)
{
    IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

    if (settings.ContainsKey("isRanFirstTime"))
        //Navigate to page 1
    else
    {
        settings.Add("isRanFirstTime, 1);
        //Navigate to page 2
    }
}
Run Code Online (Sandbox Code Playgroud)

关于从App.xaml.cs重定向导航,请在Peter Torr的帖子中找到更多信息

重定向初始导航