Posted by : Sudhir Chekuri Saturday, 28 June 2014

In App.xaml.cs file you can see the below method which contains navigation service code that is responsible to set start up page.

If you have MainPage.xaml page in Views folder the below code is used to set as start up page.

protected override Task OnLaunchApplication(LaunchActivatedEventArgs args)
        {
            NavigationService.Navigate("Main", null);
            return Task.FromResult<object>(null);
        }
\
If you have SecondPage.xaml page in Views folder the below code is used to set it as start up page.

protected override Task OnLaunchApplication(LaunchActivatedEventArgs args)
        {
            NavigationService.Navigate("Second", null);
            return Task.FromResult<object>(null);
        }

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Followers

Total Pageviews

Powered by Blogger.

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -