public CountryPickerPopup(RegistrationPageVM _regViewVM)
 {
     InitializeComponent();
     registerVM          = _regViewVM;
     this.BindingContext = registerVM;
     CountryPickerList.SetBinding(ListView.ItemsSourceProperty, "TempCountryPickerListItem");
     CountryPickerList.ItemSelected += CountryPickerList_ItemSelected;
     PopUpBgLayout.GestureRecognizers.Add(new TapGestureRecognizer
     {
         Command = new Command(HideDialog)
     });
 }
Exemplo n.º 2
0
        public SelectCurrencyPopup(AddNewCurrencyVM _NewCurrencyVM, string _CurrType)
        {
            InitializeComponent();
            NewCurrencyVM       = _NewCurrencyVM;
            this.BindingContext = NewCurrencyVM;
            CurrType            = _CurrType;
            CountryPickerList.SetBinding(ListView.ItemsSourceProperty, "CurrencyList");
            CountryPickerList.ItemSelected += CountryPickerList_ItemSelected;

            if (_CurrType == "Have")
            {
                lblSelectCurrency.Text = "I Have";
            }
            else
            {
                lblSelectCurrency.Text = "I Need";
            }

            PopUpBgLayout.GestureRecognizers.Add(new TapGestureRecognizer
            {
                Command = new Command(HideDialog)
            });
        }