Skip to content

Instantly share code, notes, and snippets.

@LuisAlbertoPenaNunez
Last active March 3, 2018 16:55
Show Gist options
  • Save LuisAlbertoPenaNunez/d3265a9b5ffab82a4e401aa7cef48da5 to your computer and use it in GitHub Desktop.
Save LuisAlbertoPenaNunez/d3265a9b5ffab82a4e401aa7cef48da5 to your computer and use it in GitHub Desktop.
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