0

I am new to windows phone 8 development, I have MainPage.xaml which is start up page by Default, I have used this page as a login page, But every time I run my application it opens login page and need to put username and password, Instead of MainPage I want to set UserList.xanl as my start up page. the next event is MainPage.xaml page_loaded event,

    private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
           NavigationService.Navigate(new Uri("/UserList.xaml", UriKind.Relative));
        }

I dont want to use above code, I have googled around but there was not any clue? Can anyone help me? Thanks

Charan Ghate
  • 1,384
  • 15
  • 32

2 Answers2

1

Did you try changing it in your WMAppManifest?

Reference: Setting The Start Page in Windows Phone 7 Application

Kulasangar
  • 9,046
  • 5
  • 51
  • 82
0

You can change startup page in the app.xaml.cs file.

Find this method:

protected async override void OnLaunched(LaunchActivatedEventArgs e)

and change MainPage to UserList here:

if ( !rootFrame.Navigate( typeof(MainPage), e.Arguments ) )
crea7or
  • 4,421
  • 2
  • 26
  • 37