Exemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            Xamarin.Forms.Forms.Init();
            XF.Material.iOS.Material.Init();

            var appContainer = new PlatformContainer();

            appContainer.Setup();

            LoadApplication(CommonServiceLocator.ServiceLocator.Current.GetInstance <App>());

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Xamarin.Forms.Forms.Init(this, savedInstanceState);
            Material.Init(this, savedInstanceState);

            var appContainer = new PlatformContainer();

            appContainer.Setup();

            var app = CommonServiceLocator.ServiceLocator.Current.GetInstance <App>();

            this.LoadApplication(app);
        }