- Back to Home »
- Windows store apps C#/XAML »
- Windows store app prism startup or first launching page change
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.
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);
}