using System;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using XamarinStudy.Services;
using XamarinStudy.Views;

namespace XamarinStudy
{
	public partial class App : Application
	{

		public App()
		{
			InitializeComponent();

			DependencyService.Register<MockDataStore>();
			//MainPage = new AppShell();

			//MainPage = new SampleContentPage();

			//MainPage = new NavigationPage(new SampleToolbarPage());

			//MainPage = new SampleTabPage();

			//TabbedPage tabbed = new TabbedPage();
			//tabbed.Children.Add(new SampleContentPage() { Title = "Page1" });
			//tabbed.Children.Add(new SampleToolbarPage() { Title = "Page2" });
			//MainPage = tabbed;

			//MainPage = new SampleCarouselPage();

			//MainPage = new SampleFlyoutPage();

			//MainPage = new SampleFlyoutPage2();

			//MainPage = new NavigationPage(new SampleNavigationPage());

			//TabbedPage tabbed = new TabbedPage();
			//tabbed.Children.Add(new SampleElementPage3() { Title = "XAML_NEW" });
			//tabbed.Children.Add(new SampleElementPage1() { Title = "XAML" });
			//tabbed.Children.Add(new SampleElementPage2() { Title = "CS" });
			//MainPage = tabbed;

			//MainPage = new SampleStackLayoutPage();

			//MainPage = new SampleGridLayoutPage();

			//MainPage = new SampleAbsoluteLayoutPage();

			//MainPage = new SampleRelativeLayoutPage();

			//MainPage = new SampleDisplayAlertActionSheetPage();

			//MainPage = new SampleTableViewPage();

			//MainPage = new NavigationPage(new SampleTableViewSimpleRegisterPage());

			//MainPage = new SampleListViewPage();

			MainPage = new NavigationPage(new ToyMartPage());
		}

		protected override void OnStart()
		{
		}

		protected override void OnSleep()
		{
		}

		protected override void OnResume()
		{
		}
	}
}
