Beispiel #1
0
        public ShellPage()
        {
            this.NavigationCacheMode = NavigationCacheMode.Required;

            ShellCore.InitializeContainer();
            ShellCore.Container.RegisterSingleton <IPlatformProvider, WinRTPlatformProvider>();

            ConfigurePlatform();
        }
Beispiel #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            ShellCore.InitializeContainer();

            ConfigurePlatform();

            shellCore.Configure();
            shellCore.Initialize();
        }
Beispiel #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            Forms.Init(this, savedInstanceState, typeof(TResource).Assembly);

            ShellCore.InitializeContainer();
            ShellCore.Container.RegisterSingleton <IPlatformProvider, AndroidPlatformProvider>();

            ConfigurePlatform();

            LoadApplication(Activator.CreateInstance <TApplication>());
        }
Beispiel #4
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            Forms.Init();

            ShellCore.InitializeContainer();
            ShellCore.Container.RegisterSingleton <IPlatformProvider, iOSPlatformProvider>();

            ConfigurePlatform();

            LoadApplication(Activator.CreateInstance <T>());

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }