private void SongComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            SfComboBox cmb = sender as SfComboBox;

            Model.Songs song = cmb.SelectedValue as Model.Songs;
            VM.SongId = song.Id;
        }
        private void SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            int totalQuantity;

            int.TryParse(e.Value.ToString(), out totalQuantity);

            var bindingContext = (sender as SfComboBox).BindingContext;

            PropertyInfo propertyInfo = bindingContext.GetType().GetProperty("Quantity");

            propertyInfo.SetValue(bindingContext, totalQuantity);

            if (this.isCheckboxLoaded)
            {
                if (this.Command == null)
                {
                    return;
                }

                if (this.Command.CanExecute((sender as SfComboBox).BindingContext))
                {
                    this.Command.Execute((sender as SfComboBox).BindingContext);
                }
            }

            this.isCheckboxLoaded = true;
        }
 private void BindableOnSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (Command == null)
     {
         return;
     }
     Command.Execute(null);
 }
Пример #4
0
        private void OnThemeClicked(object sender, SelectionChangedEventArgs e)
        {
            if (!(sender is SfComboBox themes))
            {
                return;
            }

            Helper.SetTheme(themes.SelectedItem.ToString());
        }
Пример #5
0
        private void SfComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            ObservableCollection <object> SelectedItems = new ObservableCollection <object>();

            SelectedItems = (sender as SfComboBox).SelectedItem as ObservableCollection <object>;
            if ((sender as SfComboBox).SelectedItem != null)
            {
                MessagingCenter.Send(this, "SelectedItemsChanged", SelectedItems);
            }
        }
        private async void AlbumComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            SfComboBox cmb = sender as SfComboBox;

            Model.Albums album = cmb.SelectedValue as Model.Albums;
            VM.AlbumId = album.Id;
            await VM.LoadSongs();

            SongComboBox.SelectedItem = null;
            SongComboBox.Text         = "";
        }
        /// <summary>
        /// Combos the box selection changed.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">E.</param>
        private void ComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            // Returning when value cleared in combo box
            if ((e.Value as CalendarInlineEvent) == null || String.IsNullOrEmpty((e.Value as CalendarInlineEvent).Subject))
            {
                return;
            }

            // Setting Calendar DataSource based on subject filtered data.
            calendar.DataSource = GetAppointments((e.Value as CalendarInlineEvent).Subject);
            calendar.MoveToDate = GetAppointments((e.Value as CalendarInlineEvent).Subject)[0].StartTime;
        }
        /// <summary>
        /// Invoked when selection is changed.
        /// </summary>
        /// <param name="sender">The Sender</param>
        /// <param name="e">Selection Changed Event Args</param>
        private void ComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            if (this.Command == null)
            {
                return;
            }

            if (this.Command.CanExecute(e.Value))
            {
                this.Command.Execute(e.Value);
            }
        }
Пример #9
0
 private void ComboBox2_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
 {
     Syncfusion.XForms.ComboBox.SfComboBox comboBox = sender as Syncfusion.XForms.ComboBox.SfComboBox;
     if (comboBox.SelectedIndex >= 0)
     {
         question2.IsEnabled = true;
     }
     else
     {
         question2.IsEnabled = false;
     }
 }
Пример #10
0
        private void SfComboBox_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (sender is SfComboBox source &&
                source.SelectedValue is string selectedTheme)
            {
                _vm.SelectedTheme = (Theme)Enum.Parse(typeof(Theme), selectedTheme);

                _vm.UpdatePreferences();

                Application.Current.Resources.SetCurrentTheme();
            }
        }
Пример #11
0
        void Bindable_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            employeeViewModel = new TestComboViewModel();
            var selectedValue = e.Value as List <object>;

            //employeeViewModel.MultiDriverList.Clear();


            foreach (var item in selectedValue)
            {
                employeeViewModel.MultiDriverList.Add(item as UserMaster);
            }
        }
        private void Bindable_SelectionChanged(object sender, SelectionChangedEventArgs selectionChangedEventArgs)
        {
            if (Command == null)
            {
                return;
            }

            var parameter = selectionChangedEventArgs;

            if (Command.CanExecute(parameter))
            {
                Command.Execute(parameter);
            }
        }
Пример #13
0
 private void comboBox1_SelectedItemChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
 {
     if (combobox.Text == "General Savings" | combobox.Text == "")
     {
         this.nullcb();
     }
     else
     {
         combobox.TextColor = Xamarin.Forms.Color.Black;
         // forecast.Content = new Analytics.Forecast((combobox.Text)).Content;
         // jobs_view.ItemsSource = App.Database.GetNamedJobsAsync(combobox.Text,_query_selector.start_date(),
         //    _query_selector.end_date());
         // data_entry.set_stash((combobox.Text));
         this.refresh();
     }
 }
Пример #14
0
        /// <summary>
        /// Invoked when selected item is changed.
        /// </summary>
        /// <param name="sender">The comboBox</param>
        /// <param name="e">The selection changed event args</param>
        private void SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            int.TryParse(e.Value.ToString(), out int totalQuantity);

            /*   ((sender as SfComboBox).BindingContext as Product).TotalQuantity = totalQuantity;
             *
             * if (isCheckboxLoaded)
             * {
             *     if (this.Command == null)
             *         return;
             *
             *     if (this.Command.CanExecute(((sender as SfComboBox).BindingContext as Product)))
             *         this.Command.Execute(((sender as SfComboBox).BindingContext as Product));
             * }*/

            isCheckboxLoaded = true;
        }
Пример #15
0
 private void ComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
 {
     /*
      * if (Globals.SelectedData != null && Globals.SelectedData.UCatInfoSet.Count > 0)
      * {
      *  SfComboBox temp = (SfComboBox)sender;
      *  var x = temp.Parent;
      *  Console.WriteLine("Automation Id here: " + x.AutomationId);
      *  if (int.TryParse(x.AutomationId, out int id))
      *  {
      *      Asses[id].AssignmentType = catBoxes[temp.SelectedIndex].Description;
      *      Asses[id].Weight = catBoxes[temp.SelectedIndex].Weight;
      *  }
      *
      * }
      */
     UpdateOverallScore();
 }
Пример #16
0
 /// <summary>
 /// Occurs when selected item of the ComboBox is changed.
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Event arguments of selectionchanged event.</param>
 private void SfComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (e.Value.Equals("Organization Form"))
     {
         dataForm.ContainerType = ContainerType.Outlined;
         dataForm.DataObject    = new OrganizationForm();
     }
     else if (e.Value.Equals("Employee Form"))
     {
         dataForm.ContainerType = ContainerType.Outlined;
         dataForm.DataObject    = new EmployeeForm();
     }
     else
     {
         dataForm.ContainerType = ContainerType.Filled;
         dataForm.DataObject    = new Ecommerce();
     }
 }
Пример #17
0
        void Handle_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            var picker = sender as SfComboBox;

            if (picker.StyleId == "unitBox")
            {
                List <string> palletSizes = sizeBox.ComboBoxSource;

                foreach (string size in palletSizes)
                {
                    string[] defaultSize = size.Split('(');
                    if (defaultSize[1].Contains(unitBox.Text))
                    {
                        sizeBox.Text = size;
                    }
                }
            }
        }
 /// <summary>
 /// Occurs when selected item of the ComboBox is changed.
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Event arguments of selectionchanged event.</param>
 private void SfComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (e.Value.Equals("Organization Form"))
     {
         dataForm.ContainerBackgroundColor = Color.Default;
         dataForm.ContainerType            = ContainerType.Outlined;
         dataForm.DataObject     = new OrganizationForm();
         dataForm.ShowHelperText = true;
     }
     else if (e.Value.Equals("Employee Form"))
     {
         dataForm.ContainerBackgroundColor = Color.FromHex("#F3F7FF");
         dataForm.ContainerType            = ContainerType.Outlined;
         dataForm.DataObject     = new EmployeeForm();
         dataForm.ShowHelperText = false;
     }
     else
     {
         dataForm.ContainerBackgroundColor = Color.Default;
         dataForm.ContainerType            = ContainerType.Filled;
         dataForm.DataObject     = new Ecommerce();
         dataForm.ShowHelperText = true;
     }
 }
Пример #19
0
 private void Gradebox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
 {
     UpdateOverallScore();
 }
Пример #20
0
        private void DiabetesTypes_Combobox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            var combobox = sender as SfComboBox;

            (BindingContext as Profil_Info_ViewModel).Profil.DiabetesType = combobox.SelectedItem as string;
        }
Пример #21
0
        private void TherapyTypes_Combobox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            var combobox = sender as SfComboBox;

            (BindingContext as Profil_Info_ViewModel).Settings.WeightUnit = combobox.SelectedItem as string;
        }
Пример #22
0
 async private void Bindable_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
 {
     var answer = await Xamarin.Forms.Application.Current.MainPage.DisplayAlert("Selection Changed", "Selected Index: " + combo.SelectedValue.ToString(), null, "OK");
 }
Пример #23
0
 private void CmbTeam_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
 {
 }
Пример #24
0
        private void UnitTypes_Combobox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            var combobox = sender as SfComboBox;

            (BindingContext as SignUp_ViewModel).Settings.GlycemiaUnit = combobox.SelectedItem as string;
        }
Пример #25
0
        private void Height_Combobox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            var combobox = sender as SfComboBox;

            (BindingContext as Units_ViewModel).Profil.HeighttUnit = combobox.SelectedItem as string;
        }
Пример #26
0
        private void Glucometer_Combobox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
        {
            var combobox = sender as SfComboBox;

            (BindingContext as SignUp_ViewModel).Profil.Glucometer = combobox.SelectedItem as string;
        }