RatingCheckbox CreateOption(int optionId)
        {
            var option = new RatingCheckbox(optionId)
            {
                HorizontalOptions = LayoutOptions.StartAndExpand,
                VerticalOptions   = LayoutOptions.CenterAndExpand
            };

            return(option);
        }
        StackLayout CreateOptionStack(RatingCheckbox option, string optionText)
        {
            var optionStack = new StackLayout
            {
                Orientation       = StackOrientation.Horizontal,
                HorizontalOptions = LayoutOptions.StartAndExpand,
                Spacing           = 10
            };

            optionStack.Children.Add(option);
            optionStack.Children.Add(CreateOptionLabel(optionText));
            optionStack.GestureRecognizers.Add(CreateOptionTappedRecognizer());

            return(optionStack);
        }
        void UpdateRating(int optionId)
        {
            RatingCheckbox checkBox = optionRatingList [optionId - 1];

            if (checkBox.IsChecked())
            {
                checkBox.TurnCheckboxOff();
                RatingValues.Remove(optionTextArray [optionId - 1]);
            }
            else
            {
                checkBox.TurnCheckboxOn();
                RatingValues.Add(optionTextArray [optionId - 1]);
            }
        }