Created
March 26, 2018 06:34
-
-
Save manicoder/83d4889917b48d3157d44ecf8847a2b6 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Prism.Unity; | |
using Xamarin.Forms; | |
using Prism.Ioc; | |
using Prism; | |
using XamarinFormPrism.Views; | |
namespace XamarinFormPrism | |
{ | |
public partial class App : Prism.Unity.PrismApplication | |
{ | |
public App(IPlatformInitializer platformInitiliser = null) : base(platformInitiliser) | |
{ | |
} | |
protected override void OnInitialized() | |
{ | |
InitializeComponent(); | |
NavigationService.NavigateAsync("NavigationPage/HomePage"); | |
} | |
protected override void RegisterTypes(IContainerRegistry containerRegistry) | |
{ | |
containerRegistry.RegisterForNavigation<NavigationPage>(); | |
containerRegistry.RegisterForNavigation<HomePage>(); | |
} | |
protected override void OnStart() | |
{ | |
// Handle when your app starts | |
} | |
protected override void OnSleep() | |
{ | |
// Handle when your app sleeps | |
} | |
protected override void OnResume() | |
{ | |
// Handle when your app resumes | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment