Created
October 24, 2017 15:01
-
-
Save LuisAlbertoPenaNunez/571ffbbfd2d5e23b01ccbb3e78c99f2d to your computer and use it in GitHub Desktop.
This file contains hidden or 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(); | |
| NavigationService.NavigateAsync(new Uri($"{Screens.AbsoluteURI}/{Screens.MoviesHomeTabbedPage}/{Screens.ShowingNowNavigationPage}/{Screens.ShowingNow}", UriKind.Absolute)); | |
| } | |
| protected override void RegisterTypes() | |
| { | |
| RegisterScreens(); | |
| RegisterServices(); | |
| } | |
| void RegisterScreens() | |
| { | |
| Container.RegisterTypeForNavigation<MoviesHomeTabbedPage>(); | |
| Container.RegisterTypeForNavigation<ShowingNow>(); | |
| Container.RegisterTypeForNavigation<Categories>(); | |
| Container.RegisterTypeForNavigation<SearchResults>(); | |
| Container.RegisterTypeForNavigation<MovieDetails>(); | |
| Container.RegisterTypeForNavigation<AboutMe>(); | |
| Container.RegisterTypeForNavigation<AboutMeNavigationPage>(); | |
| Container.RegisterTypeForNavigation<ShowingNowNavigationPage>(); | |
| Container.RegisterTypeForNavigation<CategoriesNavigationPage>(); | |
| } | |
| void RegisterServices() | |
| { | |
| Container.RegisterType(typeof(IMovieService), typeof(MovieService)); | |
| Container.RegisterType(typeof(IJsonReaderService), typeof(JsonReaderService)); | |
| Container.RegisterType(typeof(IFileService), typeof(FileService)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment