private void AddButton(SegmentedGroup group)
            {
                RadioButton radioButton = (RadioButton)Activity.LayoutInflater.Inflate(Resource.Layout.radio_button_item, null);

                radioButton.Text = "Button " + (group.ChildCount + 1);
                group.AddView(radioButton);
                group.UpdateBackground();
            }
            private void RemoveButton(SegmentedGroup group)
            {
                if (group.ChildCount < 1)
                {
                    return;
                }
                group.RemoveViewAt(group.ChildCount - 1);
                group.UpdateBackground();

                //Update margin for last item
                if (group.ChildCount < 1)
                {
                    return;
                }
                RadioGroup.LayoutParams layoutParams = new RadioGroup.LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.WrapContent);
                layoutParams.SetMargins(0, 0, 0, 0);
                group.GetChildAt(group.ChildCount - 1).LayoutParameters = layoutParams;
            }