public SettingsPage(Action<EC.Model.MenuItem> navigate  )
		{
             

            BindingContext = viewModel = new SettingsPageViewModel();
			Style = AppStyle.SettingsPageStyle;
			var pageTitle = new ContentView()
			{
				Style = AppStyle.PageTitleLabelFrameStyle,
				Padding = new Thickness(10, Device.OnPlatform(15,20, 0),0, 10),
				Content = new Label
				{
					Style = AppStyle.PageTitleLabelStyle,
					Text = "En la Cancha",
				},
				BackgroundColor = Color.FromHex(Constants.PrimaryColor),

			};


			var signoutButton = new Button()
			{
				VerticalOptions = LayoutOptions.EndAndExpand,
				HorizontalOptions = LayoutOptions.Center,
				Text = "Salir",
				TextColor = AppStyle.DarkLabelColor, 
			};

			var menu = new MenuView(navigate);


			var container = new StackLayout
			{
				Style = AppStyle.DefaultStack,
				Padding = new Thickness(0),
				Children = {
					pageTitle,
					//new BoxView() {
					//	HeightRequest = 5,
					//	BackgroundColor = Color.Black,

					//},
					new StackLayout()
					{
						Style= AppStyle.DefaultStack,
						BackgroundColor = Color.Transparent,
						Padding =  new Thickness(5),
						Children=
						{
							new SettingsUserView(),
							//new SyncView (),
							//new SettingsSwitchView ("GPS"),
							//new SettingsSwitchView ("Notificaciones"),

						}
					},
					new StackLayout()
					{
						Style = AppStyle.DefaultStack,
						BackgroundColor = Color.Transparent,

                        Children =
						{
							menu,

							 
						}
						},
					signoutButton,
					new StatusBarView()


				}
			};


			Content = new ScrollView()
			{
				Content = container
			};
			
		}
        public SettingsPage(Action <EC.Model.MenuItem> navigate)
        {
            BindingContext = viewModel = new SettingsPageViewModel();
            Style          = AppStyle.SettingsPageStyle;
            var pageTitle = new ContentView()
            {
                Style   = AppStyle.PageTitleLabelFrameStyle,
                Padding = new Thickness(10, Device.OnPlatform(15, 20, 0), 0, 10),
                Content = new Label
                {
                    Style = AppStyle.PageTitleLabelStyle,
                    Text  = "En la Cancha",
                },
                BackgroundColor = Color.FromHex(Constants.PrimaryColor),
            };


            var signoutButton = new Button()
            {
                VerticalOptions   = LayoutOptions.EndAndExpand,
                HorizontalOptions = LayoutOptions.Center,
                Text      = "Salir",
                TextColor = AppStyle.DarkLabelColor,
            };

            var menu = new MenuView(navigate);


            var container = new StackLayout
            {
                Style    = AppStyle.DefaultStack,
                Padding  = new Thickness(0),
                Children =
                {
                    pageTitle,
                    //new BoxView() {
                    //	HeightRequest = 5,
                    //	BackgroundColor = Color.Black,

                    //},
                    new StackLayout()
                    {
                        Style           = AppStyle.DefaultStack,
                        BackgroundColor = Color.Transparent,
                        Padding         = new Thickness(5),
                        Children        =
                        {
                            new SettingsUserView(),
                            //new SyncView (),
                            //new SettingsSwitchView ("GPS"),
                            //new SettingsSwitchView ("Notificaciones"),
                        }
                    },
                    new StackLayout()
                    {
                        Style           = AppStyle.DefaultStack,
                        BackgroundColor = Color.Transparent,

                        Children =
                        {
                            menu,
                        }
                    },
                    signoutButton,
                    new StatusBarView()
                }
            };


            Content = new ScrollView()
            {
                Content = container
            };
        }