public App(Action <ServiceCollection> configure)
        {
            InitializeComponent();

            Device.SetFlags(new[] { "SwipeView_Experimental",
                                    "Shell_UWP_Experimental" });
            Barrel.ApplicationId = "WeeklyXamarin";

            Container.Instance.ServiceProvider
                = ContainerExtension.ConfigureServices(configure);


            //MainPage = new ContentPage
            //{
            //    Content = new StackLayout
            //    {
            //        Children =
            //        {
            //            new Label
            //            {
            //                Text = "HELLLOOOOOO",
            //                VerticalOptions = LayoutOptions.CenterAndExpand,
            //                HorizontalOptions = LayoutOptions.Center
            //            }
            //        }
            //    }
            //};

            MainPage = new AppShell();
        }
Exemple #2
0
        public App(Action <ServiceCollection> configure)
        {
            InitializeComponent();

            Barrel.ApplicationId = "WeeklyXamarin";

            Container.Instance.ServiceProvider
                = ContainerExtension.ConfigureServices(configure);

            MainPage = new AppShell();
        }
Exemple #3
0
        public App(Action <ServiceCollection> configure)
        {
            InitializeComponent();

            Xamarin.Forms.Device.SetFlags(new[] { "SwipeView_Experimental",
                                                  "Shell_UWP_Experimental" });
            Barrel.ApplicationId = "WeeklyXamarin";

            Container.Instance.ServiceProvider
                = ContainerExtension.ConfigureServices(configure);

            preferences = Container.Instance.ServiceProvider.GetRequiredService <IPreferences>();


            MainPage = new AppShell();
        }