コード例 #1
0
        public App()
        {
            _testCloudService = DependencyService.Get <ITestCloudService>();
            InitInsights();

            MainPage = new MasterDetailPage
            {
                Master = new ContentPage {
                    Title = "Master", BackgroundColor = Color.Red
                },
                Detail = CoreGallery.GetMainPage()
            };

            //// Uncomment to verify that there is no gray screen displayed between the blue splash and red MasterDetailPage.
            //MainPage = new Bugzilla44596SplashPage(() =>
            //{
            //	var newTabbedPage = new TabbedPage();
            //	newTabbedPage.Children.Add(new ContentPage { BackgroundColor = Color.Red, Content = new Label { Text = "yay" } });
            //	MainPage = new MasterDetailPage
            //	{
            //		Master = new ContentPage { Title = "Master", BackgroundColor = Color.Red },
            //		Detail = newTabbedPage
            //	};
            //});
        }
コード例 #2
0
        public App()
        {
            _testCloudService = DependencyService.Get <ITestCloudService>();

            SetMainPage(CreateDefaultMainPage());

            //TestMainPageSwitches();
        }
コード例 #3
0
        public App()
        {
            _testCloudService = DependencyService.Get <ITestCloudService>();

            SetMainPage(CreateDefaultMainPage());

            //TestBugzilla44596();

            //TestBugzilla45702();
        }
コード例 #4
0
ファイル: App.cs プロジェクト: Costo/Xamarin.Forms
		public App()
		{
			_testCloudService = DependencyService.Get<ITestCloudService>();
			InitInsights();
			//MainPage = new MainPageLifeCycleTests();
			MainPage = new MasterDetailPage
			{
				Master = new ContentPage { Title = "Master", BackgroundColor = Color.Red },
				Detail = CoreGallery.GetMainPage()
			};
		}
コード例 #5
0
        public App()
        {
            _testCloudService = DependencyService.Get <ITestCloudService>();
            InitInsights();

            MainPage = new MasterDetailPage
            {
                Master = new ContentPage {
                    Title = "Master", BackgroundColor = Color.Red
                },
                Detail = CoreGallery.GetMainPage()
            };
        }
コード例 #6
0
        public App()
        {
            _testCloudService = DependencyService.Get <ITestCloudService>();

            SetMainPage(CreateDefaultMainPage());

            //// Uncomment to verify that there is no gray screen displayed between the blue splash and red MasterDetailPage.
            //SetMainPage(new Bugzilla44596SplashPage(() =>
            //{
            //	var newTabbedPage = new TabbedPage();
            //	newTabbedPage.Children.Add(new ContentPage { BackgroundColor = Color.Red, Content = new Label { Text = "yay" } });
            //	MainPage = new MasterDetailPage
            //	{
            //		Master = new ContentPage { Title = "Master", BackgroundColor = Color.Red },
            //		Detail = newTabbedPage
            //	};
            //}));

            //// Uncomment to verify that there is no crash when switching MainPage from MDP inside NavPage
            //SetMainPage(new Bugzilla45702());
        }