public void OnDelete(object sender, EventArgs e)
        {
            var mi             = ((MenuItem)sender);
            WaterControllers x = (WaterControllers)mi.CommandParameter;

            DisplayAlert("Delete Context Action", x.Name + " delete context action", "OK");
        }
        private void BtnCellView_Clicked(object sender, EventArgs e)
        {
            //
            if (sender is Button)
            {
                var templateGrid   = ((Button)sender);
                WaterControllers w = (WaterControllers)templateGrid.Parent.Parent.BindingContext;

                if (Slider.Bounds.Height == 0)
                {
                    //Slider.MinimumHeightRequest = 400;
                    var originalposition = Slider.Bounds;
                    var newposition      = Slider.Bounds;
                    newposition.Height = 300;
                    newposition.Y      = originalposition.Y - newposition.Height; //325;
                                                                                  // this.Height * 2; // - Slider.Height;
                    Slider.LayoutTo(newposition, 1000, Easing.CubicInOut);
                    lblSliderHeader.Text = w.Name;
                    //Slider.ScaleTo(2, 2000, Easing.Linear);
                }
                else
                {
                    var originalposition = Slider.Bounds;
                    var newposition      = Slider.Bounds;
                    newposition.Y      = originalposition.Y + newposition.Height; //325;
                    newposition.Height = 0;
                    // this.Height * 2; // - Slider.Height;
                    Slider.LayoutTo(newposition, 1000, Easing.CubicInOut);
                    //Slider.ScaleTo(2, 2000, Easing.Linear);
                    lblSliderHeader.Text = w.Name;
                }
            }

            //WaterControllers w = (WaterControllers)templateGrid.Parent.Parent.BindingContext;
            //DisplayAlert("Title", w.Name, "OK");
            //
        }