コード例 #1
0
 public async void FilterDistric_Click(object sender, EventArgs e)
 {
     if (LookUpControlDistrict == null)
     {
         LookUpControlDistrict                     = new LookUpControl();
         LookUpControlDistrict.ItemsSource         = viewModel.DistrictList;
         LookUpControlDistrict.SelectedItemChange += District_Change;
         LookUpControlDistrict.BottomModal         = LookUpModal;
         LookUpControlDistrict.NameDisplay         = "Name";
         LookUpControlDistrict.Placeholder         = Language.quan_huyen;
         LookUpControlDistrict.SetBinding(LookUpControl.SelectedItemProperty, new Binding("District")
         {
             Source = viewModel
         });
     }
     await LookUpControlDistrict.OpenModal();
 }
コード例 #2
0
 public async void FilterType_Click(object sender, EventArgs e)
 {
     if (LookUpControlType == null)
     {
         LookUpControlType                     = new LookUpControl();
         LookUpControlType.ItemsSource         = viewModel.TypeList;
         LookUpControlType.SelectedItemChange += Type_Change;
         LookUpControlType.BottomModal         = LookUpModal;
         LookUpControlType.NameDisplay         = "Name";
         LookUpControlType.Placeholder         = Language.loai_bat_dong_san;
         LookUpControlType.SetBinding(LookUpControl.SelectedItemProperty, new Binding("Type")
         {
             Source = viewModel
         });
     }
     await LookUpControlType.OpenModal();
 }
コード例 #3
0
        public async void FilterProvince_Click(object sender, EventArgs e)
        {
            if (LookUpControlProvince == null)
            {
                await viewModel.GetProvinceAsync();

                LookUpControlProvince                     = new LookUpControl();
                LookUpControlProvince.ItemsSource         = viewModel.ProvinceList;
                LookUpControlProvince.SelectedItemChange += Province_Change;
                LookUpControlProvince.BottomModal         = LookUpModal;
                LookUpControlProvince.NameDisplay         = "Name";
                LookUpControlProvince.Placeholder         = Language.tinh_thanh;
                LookUpControlProvince.SetBinding(LookUpControl.SelectedItemProperty, new Binding("Province")
                {
                    Source = viewModel
                });
            }

            await LookUpControlProvince.OpenModal();
        }