public EditBasicInfo(RegisterUserModel LoggedinUser)
        {
            try
            {
                InitializeComponent();

                Instance          = this;
                this.LoggedinUser = LoggedinUser;

                IEnumerable <string> genders = new List <string>()
                {
                    "Male", "Female", "Rather no to say"
                };
                SetRadioList(genders, rgEditBasicInfoGender);
                NavigationPage.SetHasNavigationBar(this, false);

                BindingContext = new EditBasicInfoViewModel(LoggedinUser);
                //_objProfileInfoResponse = new ProfileInfoResponse();
                //_apiService = new RestApi();
                //_objHeaderModel = new HeaderModel();
                //_objHeaderModel.TokenCode = Settings.TokenCode;
                //_baseUrl = Domain.Url + Domain.GetProfileInfoApiConstant;
            }
            catch (Exception ex)
            {
                Console.Write(ex.StackTrace);
            }
        }
        private void OnNextCarousel(object sender, EventArgs e)
        {
            var vm = (EditBasicInfoViewModel)BindingContext;

            var img = imgCarousel.Source.GetValue(UriImageSource.UriProperty).ToString();
            var i   = vm.UserInfo.Carousel.IndexOf(img);

            if (i + 1 >= vm.UserInfo.Carousel.Count)
            {
                return;
            }

            EditBasicInfoViewModel editBasicInfoViewModel = ((EditBasicInfoViewModel)BindingContext);

            editBasicInfoViewModel.SelectedCarousel = (i + 2) + "/" + ((editBasicInfoViewModel.UserInfo.Carousel != null) ? editBasicInfoViewModel.UserInfo.Carousel.Count.ToString() : "0");;
            imgCarousel.Source = vm.UserInfo.Carousel[i + 1];
        }