Last active
March 3, 2018 16:55
-
-
Save LuisAlbertoPenaNunez/d3265a9b5ffab82a4e401aa7cef48da5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class App : PrismApplication | |
{ | |
public App(IPlatformInitializer initializer = null) : base(initializer) { } | |
protected override void OnInitialized() | |
{ | |
InitializeComponent(); | |
var tabs = CreateTabs(); | |
NavigationService.NavigateAsync(tabs); | |
} | |
private string CreateTabs() | |
{ | |
var showingNowTab = $"{KnownNavigationParameters.CreateTab}={Screens.ShowingNowNavigationPage}|{Screens.ShowingNow}"; | |
var categoriesTab = $"{KnownNavigationParameters.CreateTab}={Screens.CategoriesNavigationPage}|{Screens.Categories}"; | |
var aboutMeTab = $"{KnownNavigationParameters.CreateTab}={Screens.AboutMeNavigationPage}|{Screens.AboutMe}"; | |
return $"{Screens.MoviesHomeTabbedPage}?{showingNowTab}&{categoriesTab}&{aboutMeTab}"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment