private void CreateMatchActionButtons()
        {
            //Do not show Delete button in NewMatch page
            if (_typeOfPage == TypePages.NewPage)
            {
                return;
            }

            Grid menuView = MenuView;

            if (menuView.Children != null)
            {
                menuView.Children.Clear();
                menuView.ColumnDefinitions.Clear();
                menuView.RowDefinitions.Clear();
            }

            RowDefinition rd = new RowDefinition
            {
                Height = new GridLength(50)
            };

            menuView.RowDefinitions.Add(rd);
            List <string> menuItemList = new List <string>()
            {
                "DELETE MATCH",
                //"SAVE MATCH",
            };

            int i = 0;

            foreach (string item in menuItemList)
            {
                ColumnDefinition cd = new ColumnDefinition
                {
                    Width = new GridLength(1, GridUnitType.Star)
                };
                menuView.ColumnDefinitions.Add(cd);

                DetailMenuItem view = new DetailMenuItem();
                view.BindingContext = item;
                Label       menuTextLabel       = (Label)view.FindByName("MenuTextLabel");
                StackLayout detailMenuItemPanel = (StackLayout)view.FindByName("DetailMenuItemPanel");
                detailMenuItemPanel.BackgroundColor = i == 0 ? Color.DarkRed : Color.DarkKhaki;
                menuTextLabel.TextColor             = Color.White;
                menuTextLabel.FontSize = 10;
                Grid.SetColumn(view, i);
                var tapGestureRecognizer = new TapGestureRecognizer();
                tapGestureRecognizer.Tapped          += MatchActionSelected_Tapped;
                tapGestureRecognizer.CommandParameter = i;
                view.GestureRecognizers.Add(tapGestureRecognizer);
                menuView.Children.Add(view);
                i++;
            }
        }
        private void AddDetailsMenuItemView()
        {
            if (DetailsMenuItemView.Children != null)
            {
                DetailsMenuItemView.Children.Clear();
                DetailsMenuItemView.ColumnDefinitions.Clear();
                DetailsMenuItemView.RowDefinitions.Clear();
            }

            RowDefinition rd = new RowDefinition
            {
                Height = new GridLength(36)
            };

            DetailsMenuItemView.RowDefinitions.Add(rd);
            List <string> menuItemList = new List <string>()
            {
                "Events",
                "Summary",
                "Line ups"
            };

            int i = 0;

            foreach (string item in menuItemList)
            {
                ColumnDefinition cd = new ColumnDefinition
                {
                    Width = new GridLength(1, GridUnitType.Star)
                };
                DetailsMenuItemView.ColumnDefinitions.Add(cd);
                DetailMenuItem view = new DetailMenuItem
                {
                    BindingContext = item
                };
                Label menuTextLabel = (Label)view.FindByName("MenuTextLabel");
                menuTextLabel.FontSize = 12;
                StackLayout detailMenuItemPanel = (StackLayout)view.FindByName("DetailMenuItemPanel");
                detailMenuItemPanel.BackgroundColor = Color.DimGray;
                menuTextLabel.TextColor             = Color.White;
                if (_detailsMatchitemIndex < menuItemList.Count && item == menuItemList[_detailsMatchitemIndex])
                {
                    detailMenuItemPanel.BackgroundColor = Color.FromHex("#2F4F2F");
                }
                Grid.SetColumn(view, i);
                var tapGestureRecognizer = new TapGestureRecognizer();
                tapGestureRecognizer.Tapped          += DetailsMenuItemSelected_Tapped;
                tapGestureRecognizer.CommandParameter = menuItemList.IndexOf(item);
                view.GestureRecognizers.Add(tapGestureRecognizer);
                DetailsMenuItemView.Children.Add(view);
                i++;
            }
        }